AsyncReadOperation<Boolean>
, ReadOperation<Boolean>
public class UserExistsOperation extends Object implements AsyncReadOperation<Boolean>, ReadOperation<Boolean>
Constructor | Description |
---|---|
UserExistsOperation(String databaseName,
String userName) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
Boolean |
execute(ReadBinding binding) |
General execute which can return anything of type T
|
void |
executeAsync(AsyncReadBinding binding,
SingleResultCallback<Boolean> callback) |
General execute which can return anything of type T
|
public Boolean execute(ReadBinding binding)
ReadOperation
execute
in interface ReadOperation<Boolean>
binding
- the binding to execute in the context ofpublic void executeAsync(AsyncReadBinding binding, SingleResultCallback<Boolean> callback)
AsyncReadOperation
executeAsync
in interface AsyncReadOperation<Boolean>
binding
- the binding to execute in the context ofcallback
- the callback to be called when the operation has been executed