AsyncWriteOperation<WriteConcernResult>
, WriteOperation<WriteConcernResult>
public class DeleteOperation extends BaseWriteOperation
Constructor | Description |
---|---|
DeleteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
boolean retryWrites,
List<DeleteRequest> deleteRequests) |
Construct an instance.
|
DeleteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<DeleteRequest> deleteRequests) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
List<DeleteRequest> |
getDeleteRequests() |
Gets the list of remove requests.
|
protected WriteRequest.Type |
getType() |
|
protected List<? extends WriteRequest> |
getWriteRequests() |
bypassDocumentValidation, execute, executeAsync, getBypassDocumentValidation, getNamespace, getWriteConcern, isOrdered
@Deprecated public DeleteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, List<DeleteRequest> deleteRequests)
DeleteOperation(MongoNamespace, boolean, WriteConcern, boolean, List)
insteadnamespace
- the database and collection namespace for the operation.ordered
- whether the writes are ordered.writeConcern
- the write concern for the operation.deleteRequests
- the remove requests.public DeleteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, boolean retryWrites, List<DeleteRequest> deleteRequests)
namespace
- the database and collection namespace for the operation.ordered
- whether the writes are ordered.writeConcern
- the write concern for the operation.retryWrites
- if writes should be retried if they fail due to a network error.deleteRequests
- the remove requests.public List<DeleteRequest> getDeleteRequests()
protected List<? extends WriteRequest> getWriteRequests()
getWriteRequests
in class BaseWriteOperation
protected WriteRequest.Type getType()
getType
in class BaseWriteOperation