class DeleteCommandMessage extends BaseWriteCommandMessage
RequestMessage.EncodingMetadata, RequestMessage.OpCode
Modifier and Type | Field and Description |
---|---|
private java.util.List<DeleteRequest> |
deletes |
REQUEST_ID
Constructor and Description |
---|
DeleteCommandMessage(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
MessageSettings settings,
java.util.List<DeleteRequest> deletes)
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<DeleteRequest> |
getRequests()
Gets the list of requests.
|
protected BaseWriteCommandMessage |
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<DeleteRequest> deletes
DeleteCommandMessage(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, MessageSettings settings, java.util.List<DeleteRequest> deletes)
namespace
- the namespaceordered
- whether the writes are orderedwriteConcern
- the write concernsettings
- the message settingsdeletes
- the list of delete requestspublic int getItemCount()
BaseWriteCommandMessage
getItemCount
in class BaseWriteCommandMessage
protected FieldNameValidator getFieldNameValidator()
BaseWriteCommandMessage
getFieldNameValidator
in class BaseWriteCommandMessage
public java.util.List<DeleteRequest> getRequests()
protected java.lang.String getCommandName()
BaseWriteCommandMessage
getCommandName
in class BaseWriteCommandMessage
protected BaseWriteCommandMessage 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 writer