public class DropUserOperation extends java.lang.Object implements AsyncWriteOperation<java.lang.Void>, WriteOperation<java.lang.Void>
| 构造器和说明 |
|---|
DropUserOperation(java.lang.String databaseName,
java.lang.String userName)
Construct a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Void |
execute(WriteBinding binding)
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<java.lang.Void> callback)
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 java.lang.Void execute(WriteBinding binding)
WriteOperationexecute 在接口中 WriteOperation<java.lang.Void>binding - the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<java.lang.Void> callback)
AsyncWriteOperationexecuteAsync 在接口中 AsyncWriteOperation<java.lang.Void>binding - the binding to execute in the context ofcallback - the callback to be called when the operation has been executed