Package com.mongodb.operation
Class DropIndexOperation
- java.lang.Object
 - 
- com.mongodb.operation.DropIndexOperation
 
 
- 
- All Implemented Interfaces:
 AsyncWriteOperation<Void>,WriteOperation<Void>
@Deprecated public class DropIndexOperation extends Object implements AsyncWriteOperation<Void>, WriteOperation<Void>
Deprecated.An operation that drops an index.- Since:
 - 3.0
 - MongoDB documentation
 - Drop indexes
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DropIndexOperation(MongoNamespace namespace, String indexName)Deprecated.DropIndexOperation(MongoNamespace namespace, String indexName, WriteConcern writeConcern)Deprecated.Construct a new instance.DropIndexOperation(MongoNamespace namespace, BsonDocument keys)Deprecated.DropIndexOperation(MongoNamespace namespace, BsonDocument indexKeys, WriteConcern writeConcern)Deprecated.Construct a new instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Voidexecute(WriteBinding binding)Deprecated.General execute which can return anything of type TvoidexecuteAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback)Deprecated.General execute which can return anything of type TlonggetMaxTime(TimeUnit timeUnit)Deprecated.Gets the maximum execution time on the server for this operation.WriteConcerngetWriteConcern()Deprecated.Gets the write concern.DropIndexOperationmaxTime(long maxTime, TimeUnit timeUnit)Deprecated.Sets the maximum execution time on the server for this operation. 
 - 
 
- 
- 
Constructor Detail
- 
DropIndexOperation
@Deprecated public DropIndexOperation(MongoNamespace namespace, String indexName)
Deprecated.Construct a new instance.- Parameters:
 namespace- the database and collection namespace for the operation.indexName- the name of the index to be dropped.
 
- 
DropIndexOperation
@Deprecated public DropIndexOperation(MongoNamespace namespace, BsonDocument keys)
Deprecated.Construct a new instance.- Parameters:
 namespace- the database and collection namespace for the operation.keys- the keys of the index to be dropped
 
- 
DropIndexOperation
public DropIndexOperation(MongoNamespace namespace, String indexName, WriteConcern writeConcern)
Deprecated.Construct a new instance.- Parameters:
 namespace- the database and collection namespace for the operation.indexName- the name of the index to be dropped.writeConcern- the write concern- Since:
 - 3.4
 
 
- 
DropIndexOperation
public DropIndexOperation(MongoNamespace namespace, BsonDocument indexKeys, WriteConcern writeConcern)
Deprecated.Construct a new instance.- Parameters:
 namespace- the database and collection namespace for the operation.indexKeys- the keys of the index to be droppedwriteConcern- the write concern- Since:
 - 3.4
 
 
 - 
 
- 
Method Detail
- 
getWriteConcern
public WriteConcern getWriteConcern()
Deprecated.Gets the write concern.- Returns:
 - the write concern, which may be null
 - Since:
 - 3.4
 
 
- 
getMaxTime
public long getMaxTime(TimeUnit timeUnit)
Deprecated.Gets the maximum execution time on the server for this operation. The default is 0, which places no limit on the execution time.- Parameters:
 timeUnit- the time unit to return the result in- Returns:
 - the maximum execution time in the given time unit
 - Since:
 - 3.6
 
 
- 
maxTime
public DropIndexOperation maxTime(long maxTime, TimeUnit timeUnit)
Deprecated.Sets the maximum execution time on the server for this operation.- Parameters:
 maxTime- the max timetimeUnit- the time unit, which may not be null- Returns:
 - this
 - Since:
 - 3.6
 
 
- 
execute
public Void execute(WriteBinding binding)
Deprecated.Description copied from interface:WriteOperationGeneral execute which can return anything of type T- Specified by:
 executein interfaceWriteOperation<Void>- Parameters:
 binding- the binding to execute in the context of- Returns:
 - T, the result of the execution
 
 
- 
executeAsync
public void executeAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback)
Deprecated.Description copied from interface:AsyncWriteOperationGeneral execute which can return anything of type T- Specified by:
 executeAsyncin interfaceAsyncWriteOperation<Void>- Parameters:
 binding- the binding to execute in the context ofcallback- the callback to be called when the operation has been executed
 
 - 
 
 -