CommandWriteOperation
directly or the mongod shell helpers.@Deprecated public class DropUserOperation extends java.lang.Object implements AsyncWriteOperation<java.lang.Void>, WriteOperation<java.lang.Void>
Constructor and Description |
---|
DropUserOperation(java.lang.String databaseName,
java.lang.String userName)
Deprecated.
Construct a new instance.
|
DropUserOperation(java.lang.String databaseName,
java.lang.String userName,
WriteConcern writeConcern)
Deprecated.
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
execute(WriteBinding binding)
Deprecated.
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<java.lang.Void> callback)
Deprecated.
General execute which can return anything of type T
|
public DropUserOperation(java.lang.String databaseName, java.lang.String userName)
databaseName
- the name of the database for the operation.userName
- the name of the user to be dropped.public DropUserOperation(java.lang.String databaseName, java.lang.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 java.lang.Void execute(WriteBinding binding)
WriteOperation
execute
in interface WriteOperation<java.lang.Void>
binding
- the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<java.lang.Void> callback)
AsyncWriteOperation
executeAsync
in interface AsyncWriteOperation<java.lang.Void>
binding
- the binding to execute in the context ofcallback
- the callback to be called when the operation has been executedCopyright © 2010 - 2020 Adobe. All Rights Reserved