public final class CommandMessage
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
encode(BsonOutput bsonOutput,
SessionContext sessionContext)
Encoded the message to the given output.
|
static int |
getCurrentGlobalId()
Gets the next available unique message identifier.
|
com.mongodb.internal.connection.RequestMessage.EncodingMetadata |
getEncodingMetadata()
Gets the encoding metadata from the last attempt to encode this message.
|
int |
getId()
Gets the message id.
|
com.mongodb.internal.connection.OpCode |
getOpCode()
Gets the op code of the message.
|
com.mongodb.internal.connection.MessageSettings |
getSettings()
Gets the message settings.
|
public static int getCurrentGlobalId()
public int getId()
public com.mongodb.internal.connection.OpCode getOpCode()
public com.mongodb.internal.connection.MessageSettings getSettings()
public void encode(BsonOutput bsonOutput, SessionContext sessionContext)
bsonOutput
- the outputsessionContext
- the session contextpublic com.mongodb.internal.connection.RequestMessage.EncodingMetadata getEncodingMetadata()
Copyright © 2010 - 2020 Adobe. All Rights Reserved