Package com.mongodb.internal.connection
Class CommandMessage
- java.lang.Object
-
- com.mongodb.internal.connection.CommandMessage
-
@Deprecated(since="2021-05-27") public final class CommandMessage extends java.lang.Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A command message that uses OP_MSG or OP_QUERY to send the command.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
encode(BsonOutput bsonOutput, SessionContext sessionContext)
Deprecated.Encoded the message to the given output.static int
getCurrentGlobalId()
Deprecated.Gets the next available unique message identifier.com.mongodb.internal.connection.RequestMessage.EncodingMetadata
getEncodingMetadata()
Deprecated.Gets the encoding metadata from the last attempt to encode this message.int
getId()
Deprecated.Gets the message id.com.mongodb.internal.connection.OpCode
getOpCode()
Deprecated.Gets the op code of the message.MessageSettings
getSettings()
Deprecated.Gets the message settings.
-
-
-
Method Detail
-
getCurrentGlobalId
public static int getCurrentGlobalId()
Deprecated.Gets the next available unique message identifier.- Returns:
- the message identifier
-
getId
public int getId()
Deprecated.Gets the message id.- Returns:
- the message id
-
getOpCode
public com.mongodb.internal.connection.OpCode getOpCode()
Deprecated.Gets the op code of the message.- Returns:
- the op code
-
getSettings
public MessageSettings getSettings()
Deprecated.Gets the message settings.- Returns:
- the message settings
-
encode
public void encode(BsonOutput bsonOutput, SessionContext sessionContext)
Deprecated.Encoded the message to the given output.- Parameters:
bsonOutput
- the outputsessionContext
- the session context
-
getEncodingMetadata
public com.mongodb.internal.connection.RequestMessage.EncodingMetadata getEncodingMetadata()
Deprecated.Gets the encoding metadata from the last attempt to encode this message.- Returns:
- Get metadata from the last attempt to encode this message. Returns null if there has not yet been an attempt.
-
-