Package com.mongodb.internal.connection
Class CommandMessage
java.lang.Object
com.mongodb.internal.connection.CommandMessage
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
Modifier and TypeMethodDescriptionvoid
encode
(BsonOutput bsonOutput, SessionContext sessionContext) Deprecated.Encoded the message to the given output.static int
Deprecated.Gets the next available unique message identifier.com.mongodb.internal.connection.RequestMessage.EncodingMetadata
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
Deprecated.Gets the op code of the message.Deprecated.Gets the message settings.
-
Method Details
-
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
Deprecated.Gets the message settings.- Returns:
- the message settings
-
encode
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.
-