class GetMoreMessage extends LegacyMessage
RequestMessage.EncodingMetadata
Modifier and Type | Field and Description |
---|---|
private long |
cursorId |
private int |
numberToReturn |
MESSAGE_PROLOGUE_LENGTH, REQUEST_ID
Constructor and Description |
---|
GetMoreMessage(java.lang.String collectionName,
long cursorId,
int numberToReturn) |
Modifier and Type | Method and Description |
---|---|
protected RequestMessage.EncodingMetadata |
encodeMessageBodyWithMetadata(BsonOutput bsonOutput) |
long |
getCursorId()
Gets the cursor to get more from.
|
private void |
writeGetMore(BsonOutput buffer) |
encodeMessageBodyWithMetadata
addCollectibleDocument, addDocument, addDocument, backpatchMessageLength, encode, getCodec, getCollectionName, getCurrentGlobalId, getEncodingMetadata, getId, getNamespace, getOpCode, getSettings, writeMessagePrologue
GetMoreMessage(java.lang.String collectionName, long cursorId, int numberToReturn)
public long getCursorId()
protected RequestMessage.EncodingMetadata encodeMessageBodyWithMetadata(BsonOutput bsonOutput)
encodeMessageBodyWithMetadata
in class LegacyMessage
private void writeGetMore(BsonOutput buffer)