public interface AsyncOperationExecutor
Modifier and Type | Method and Description |
---|---|
<T> void |
execute(AsyncReadOperation<T> operation,
ReadPreference readPreference,
ClientSession session,
SingleResultCallback<T> callback)
Execute the read operation with the given read preference.
|
<T> void |
execute(AsyncReadOperation<T> operation,
ReadPreference readPreference,
SingleResultCallback<T> callback)
Execute the read operation with the given read preference.
|
<T> void |
execute(AsyncWriteOperation<T> operation,
ClientSession session,
SingleResultCallback<T> callback)
Execute the write operation.
|
<T> void |
execute(AsyncWriteOperation<T> operation,
SingleResultCallback<T> callback)
Execute the write operation.
|
<T> void execute(AsyncReadOperation<T> operation, ReadPreference readPreference, SingleResultCallback<T> callback)
T
- the operations result type.operation
- the read operation.readPreference
- the read preference.callback
- the callback to be called when the operation has been executed<T> void execute(AsyncReadOperation<T> operation, ReadPreference readPreference, ClientSession session, SingleResultCallback<T> callback)
T
- the operations result type.operation
- the read operation.readPreference
- the read preference.session
- the session to associate this operation withcallback
- the callback to be called when the operation has been executed<T> void execute(AsyncWriteOperation<T> operation, SingleResultCallback<T> callback)
T
- the operations result type.operation
- the write operation.callback
- the callback to be called when the operation has been executed<T> void execute(AsyncWriteOperation<T> operation, ClientSession session, SingleResultCallback<T> callback)
T
- the operations result type.operation
- the write operation.session
- the session to associate this operation withcallback
- the callback to be called when the operation has been executed