public class DeleteOperation extends BaseWriteOperation
| Constructor and Description | 
|---|
| DeleteOperation(MongoNamespace namespace,
               boolean ordered,
               WriteConcern writeConcern,
               List<DeleteRequest> deleteRequests)Construct an instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected BulkWriteResult | executeCommandProtocol(Connection connection)Executes the write command protocol. | 
| protected void | executeCommandProtocolAsync(AsyncConnection connection,
                           SingleResultCallback<BulkWriteResult> callback)Asynchronously executes the write command protocol. | 
| protected WriteConcernResult | executeProtocol(Connection connection)Executes the write protocol | 
| protected void | executeProtocolAsync(AsyncConnection connection,
                    SingleResultCallback<WriteConcernResult> callback)Asynchronously executes the write protocol | 
| protected int | getCount(BulkWriteResult bulkWriteResult) | 
| List<DeleteRequest> | getDeleteRequests()Gets the list of remove requests. | 
| protected WriteRequest.Type | getType() | 
bypassDocumentValidation, execute, executeAsync, getBypassDocumentValidation, getNamespace, getUpdatedExisting, getWriteConcern, isOrderedpublic DeleteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, 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.deleteRequests - the remove requests.public List<DeleteRequest> getDeleteRequests()
protected WriteConcernResult executeProtocol(Connection connection)
BaseWriteOperationexecuteProtocol in class BaseWriteOperationconnection - the connectionprotected void executeProtocolAsync(AsyncConnection connection, SingleResultCallback<WriteConcernResult> callback)
BaseWriteOperationexecuteProtocolAsync in class BaseWriteOperationconnection - the connectioncallback - the callback to be passed the WriteConcernResultprotected BulkWriteResult executeCommandProtocol(Connection connection)
BaseWriteOperationexecuteCommandProtocol in class BaseWriteOperationconnection - the connectionprotected void executeCommandProtocolAsync(AsyncConnection connection, SingleResultCallback<BulkWriteResult> callback)
BaseWriteOperationexecuteCommandProtocolAsync in class BaseWriteOperationconnection - the connectioncallback - the callback to be passed the BulkWriteResultprotected WriteRequest.Type getType()
getType in class BaseWriteOperationprotected int getCount(BulkWriteResult bulkWriteResult)
getCount in class BaseWriteOperation