class UpdateCommandMessage extends BaseWriteCommandMessage
Modifier and Type | Class and Description |
---|---|
private class |
UpdateCommandMessage.UpdatesValidator |
RequestMessage.EncodingMetadata, RequestMessage.OpCode
Modifier and Type | Field and Description |
---|---|
private java.util.List<UpdateRequest> |
updates |
REQUEST_ID
Constructor and Description |
---|
UpdateCommandMessage(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.lang.Boolean bypassDocumentValidation,
MessageSettings settings,
java.util.List<UpdateRequest> updates) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getCommandName()
Gets the name of the write command
|
protected FieldNameValidator |
getFieldNameValidator()
Gets the field name validator to apply.
|
int |
getItemCount()
Gets the number of write requests left to encode.
|
java.util.List<UpdateRequest> |
getRequests()
Gets the update requests.
|
protected UpdateCommandMessage |
writeTheWrites(BsonOutput bsonOutput,
int commandStartPosition,
BsonBinaryWriter writer)
Write the list of writes to the output after the write command prologue has been written.
|
encode, encodeMessageBody, encodeMessageBodyWithMetadata, exceedsLimits, getBypassDocumentValidation, getWriteConcern, getWriteNamespace, isOrdered
addCollectibleDocument, addDocument, backpatchMessageLength, encodeWithMetadata, getCodec, getCollectionName, getCurrentGlobalId, getId, getNamespace, getOpCode, getSettings, writeMessagePrologue
private final java.util.List<UpdateRequest> updates
UpdateCommandMessage(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, java.lang.Boolean bypassDocumentValidation, MessageSettings settings, java.util.List<UpdateRequest> updates)
public java.util.List<UpdateRequest> getRequests()
protected UpdateCommandMessage writeTheWrites(BsonOutput bsonOutput, int commandStartPosition, BsonBinaryWriter writer)
BaseWriteCommandMessage
writeTheWrites
in class BaseWriteCommandMessage
bsonOutput
- the BSON outputcommandStartPosition
- the position in the output where the command document startswriter
- the writerpublic int getItemCount()
BaseWriteCommandMessage
getItemCount
in class BaseWriteCommandMessage
protected FieldNameValidator getFieldNameValidator()
BaseWriteCommandMessage
getFieldNameValidator
in class BaseWriteCommandMessage
protected java.lang.String getCommandName()
BaseWriteCommandMessage
getCommandName
in class BaseWriteCommandMessage