public class DropUserOperation extends Object implements AsyncWriteOperation<Void>, WriteOperation<Void>
| Constructor and Description |
|---|
DropUserOperation(String databaseName,
String userName)
Deprecated.
|
DropUserOperation(String databaseName,
String userName,
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
|
@Deprecated public DropUserOperation(String databaseName, String userName)
DropUserOperation(String, String, WriteConcern)databaseName - the name of the database for the operation.userName - the name of the user to be dropped.public DropUserOperation(String databaseName, String userName, WriteConcern writeConcern)
databaseName - the name of the database for the operation.userName - the name of the user to be dropped.writeConcern - the write concernpublic 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