interface OperationExecutor
Modifier and Type | Method and Description |
---|---|
<T> T |
execute(ReadOperation<T> operation,
ReadPreference readPreference)
Execute the read operation with the given read preference.
|
<T> T |
execute(ReadOperation<T> operation,
ReadPreference readPreference,
ClientSession session)
Execute the read operation with the given read preference.
|
<T> T |
execute(WriteOperation<T> operation)
Execute the write operation.
|
<T> T |
execute(WriteOperation<T> operation,
ClientSession session)
Execute the write operation.
|
<T> T execute(ReadOperation<T> operation, ReadPreference readPreference)
T
- the operations result type.operation
- the read operation.readPreference
- the read preference.<T> T execute(WriteOperation<T> operation)
T
- the operations result type.operation
- the write operation.<T> T execute(ReadOperation<T> operation, ReadPreference readPreference, ClientSession session)
T
- the operations result type.operation
- the read operation.readPreference
- the read preference.session
- the session to associate this operation with<T> T execute(WriteOperation<T> operation, ClientSession session)
T
- the operations result type.operation
- the write operation.session
- the session to associate this operation with