class DeleteMessage extends RequestMessage
RequestMessage.EncodingMetadata, RequestMessage.OpCode
Modifier and Type | Field and Description |
---|---|
private java.util.List<DeleteRequest> |
deleteRequests |
REQUEST_ID
Constructor and Description |
---|
DeleteMessage(java.lang.String collectionName,
java.util.List<DeleteRequest> deletes,
MessageSettings settings)
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.
|
addCollectibleDocument, addDocument, backpatchMessageLength, encode, encodeWithMetadata, getCodec, getCollectionName, getCurrentGlobalId, getId, getNamespace, getOpCode, getSettings, writeMessagePrologue
private final java.util.List<DeleteRequest> deleteRequests
public DeleteMessage(java.lang.String collectionName, java.util.List<DeleteRequest> deletes, MessageSettings settings)
collectionName
- the collection namedeletes
- the list of delete requestssettings
- the message settingsprotected 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 message