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)
Construct an instance.
|
| 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, writeMessageProloguepublic GetMoreMessage(java.lang.String collectionName,
long cursorId,
int numberToReturn)
collectionName - the collection namecursorId - the cursor idnumberToReturn - the number of documents to returnpublic long getCursorId()
protected RequestMessage encodeMessageBody(BsonOutput bsonOutput, int messageStartPosition)
RequestMessageencodeMessageBody in class RequestMessagebsonOutput - the outputmessageStartPosition - the start position of the messageprotected RequestMessage.EncodingMetadata encodeMessageBodyWithMetadata(BsonOutput bsonOutput, int messageStartPosition)
RequestMessageencodeMessageBodyWithMetadata in class RequestMessagebsonOutput - the outputmessageStartPosition - the start position of the messageprivate void writeGetMore(BsonOutput buffer)