class UpdateMessage extends RequestMessage
RequestMessage.EncodingMetadata, RequestMessage.OpCode
Modifier and Type | Field and Description |
---|---|
private java.util.List<UpdateRequest> |
updates |
REQUEST_ID
Constructor and Description |
---|
UpdateMessage(java.lang.String collectionName,
java.util.List<UpdateRequest> updates,
MessageSettings settings) |
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.
|
java.util.List<UpdateRequest> |
getUpdateRequests() |
addCollectibleDocument, addDocument, backpatchMessageLength, encode, encodeWithMetadata, getCodec, getCollectionName, getCurrentGlobalId, getId, getNamespace, getOpCode, getSettings, writeMessagePrologue
private final java.util.List<UpdateRequest> updates
UpdateMessage(java.lang.String collectionName, java.util.List<UpdateRequest> updates, MessageSettings settings)
public java.util.List<UpdateRequest> getUpdateRequests()
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 message