class GetMoreMessage extends RequestMessage
RequestMessage.EncodingMetadata, RequestMessage.OpCode
Modifier and Type | Field and Description |
---|---|
private long |
cursorId |
private int |
numberToReturn |
REQUEST_ID
Constructor and Description |
---|
GetMoreMessage(java.lang.String collectionName,
long cursorId,
int numberToReturn) |
Modifier and Type | Method and Description |
---|---|
protected RequestMessage |
encodeMessageBody(BsonOutput bsonOutput,
int messageStartPosition)
Encode the message body to the given output.
|
protected RequestMessage.EncodingMetadata |
encodeMessageBodyWithMetadata(BsonOutput bsonOutput,
int messageStartPosition)
Encode the message body to the given output.
|
long |
getCursorId()
Gets the cursor to get more from.
|
private void |
writeGetMore(BsonOutput buffer) |
addCollectibleDocument, addDocument, backpatchMessageLength, encode, encodeWithMetadata, getCodec, getCollectionName, getCurrentGlobalId, getId, getNamespace, getOpCode, getSettings, writeMessagePrologue
GetMoreMessage(java.lang.String collectionName, long cursorId, int numberToReturn)
public long getCursorId()
protected RequestMessage encodeMessageBody(BsonOutput bsonOutput, int messageStartPosition)
RequestMessage
encodeMessageBody
in class RequestMessage
bsonOutput
- the outputmessageStartPosition
- the start position of the messageprotected RequestMessage.EncodingMetadata encodeMessageBodyWithMetadata(BsonOutput bsonOutput, int messageStartPosition)
RequestMessage
encodeMessageBodyWithMetadata
in class RequestMessage
bsonOutput
- the outputmessageStartPosition
- the start position of the messageprivate void writeGetMore(BsonOutput buffer)