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)
Construct an instance.
|
| 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, isOrderedaddCollectibleDocument, addDocument, backpatchMessageLength, encodeWithMetadata, getCodec, getCollectionName, getCurrentGlobalId, getId, getNamespace, getOpCode, getSettings, writeMessagePrologueprivate final java.util.List<UpdateRequest> updates
public UpdateCommandMessage(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, java.lang.Boolean bypassDocumentValidation, MessageSettings settings, java.util.List<UpdateRequest> updates)
namespace - the namespaceordered - whether the writes are orderedwriteConcern - the write concernsettings - the message settingsupdates - the list of update requestspublic java.util.List<UpdateRequest> getRequests()
protected UpdateCommandMessage writeTheWrites(BsonOutput bsonOutput, int commandStartPosition, BsonBinaryWriter writer)
BaseWriteCommandMessagewriteTheWrites in class BaseWriteCommandMessagebsonOutput - the BSON outputcommandStartPosition - the position in the output where the command document startswriter - the writerpublic int getItemCount()
BaseWriteCommandMessagegetItemCount in class BaseWriteCommandMessageprotected FieldNameValidator getFieldNameValidator()
BaseWriteCommandMessagegetFieldNameValidator in class BaseWriteCommandMessageprotected java.lang.String getCommandName()
BaseWriteCommandMessagegetCommandName in class BaseWriteCommandMessage