public class DropIndexOperation extends Object implements AsyncWriteOperation<Void>, WriteOperation<Void>
| Constructor and Description | 
|---|
| DropIndexOperation(MongoNamespace namespace,
                  BsonDocument keys)Deprecated. 
 | 
| DropIndexOperation(MongoNamespace namespace,
                  BsonDocument keys,
                  WriteConcern writeConcern)Construct a new instance. | 
| DropIndexOperation(MongoNamespace namespace,
                  String indexName)Deprecated. 
 | 
| DropIndexOperation(MongoNamespace namespace,
                  String indexName,
                  WriteConcern writeConcern)Construct a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| Void | execute(WriteBinding binding)General execute which can return anything of type T | 
| void | executeAsync(AsyncWriteBinding binding,
            SingleResultCallback<Void> callback)General execute which can return anything of type T | 
| WriteConcern | getWriteConcern()Gets the write concern. | 
@Deprecated public DropIndexOperation(MongoNamespace namespace, String indexName)
DropIndexOperation(MongoNamespace, String, WriteConcern)namespace - the database and collection namespace for the operation.indexName - the name of the index to be dropped.@Deprecated public DropIndexOperation(MongoNamespace namespace, BsonDocument keys)
DropIndexOperation(MongoNamespace, BsonDocument, WriteConcern)namespace - the database and collection namespace for the operation.keys - the keys of the index to be droppedpublic DropIndexOperation(MongoNamespace namespace, String indexName, WriteConcern writeConcern)
namespace - the database and collection namespace for the operation.indexName - the name of the index to be dropped.writeConcern - the write concernpublic DropIndexOperation(MongoNamespace namespace, BsonDocument keys, WriteConcern writeConcern)
namespace - the database and collection namespace for the operation.keys - the keys of the index to be droppedwriteConcern - the write concernpublic WriteConcern getWriteConcern()
public Void execute(WriteBinding binding)
WriteOperationexecute in interface WriteOperation<Void>binding - the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback)
AsyncWriteOperationexecuteAsync in interface AsyncWriteOperation<Void>binding - the binding to execute in the context ofcallback - the callback to be called when the operation has been executed