Package com.mongodb.operation
Interface AsyncOperationExecutor
Deprecated.
there is no replacement for this interface
An interface describing the execution of a read or a write operation.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescription<T> void
execute
(AsyncReadOperation<T> operation, ReadPreference readPreference, SingleResultCallback<T> callback) Deprecated.Execute the read operation with the given read preference.<T> void
execute
(AsyncReadOperation<T> operation, ReadPreference readPreference, ClientSession session, SingleResultCallback<T> callback) Deprecated.Execute the read operation with the given read preference.<T> void
execute
(AsyncWriteOperation<T> operation, SingleResultCallback<T> callback) Deprecated.Execute the write operation.<T> void
execute
(AsyncWriteOperation<T> operation, ClientSession session, SingleResultCallback<T> callback) Deprecated.Execute the write operation.
-
Method Details
-
execute
<T> void execute(AsyncReadOperation<T> operation, ReadPreference readPreference, SingleResultCallback<T> callback) Deprecated.Execute the read operation with the given read preference.- Type Parameters:
T
- the operations result type.- Parameters:
operation
- the read operation.readPreference
- the read preference.callback
- the callback to be called when the operation has been executed
-
execute
<T> void execute(AsyncReadOperation<T> operation, ReadPreference readPreference, ClientSession session, SingleResultCallback<T> callback) Deprecated.Execute the read operation with the given read preference.- Type Parameters:
T
- the operations result type.- Parameters:
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- Since:
- 3.6
-
execute
Deprecated.Execute the write operation.- Type Parameters:
T
- the operations result type.- Parameters:
operation
- the write operation.callback
- the callback to be called when the operation has been executed
-
execute
<T> void execute(AsyncWriteOperation<T> operation, ClientSession session, SingleResultCallback<T> callback) Deprecated.Execute the write operation.- Type Parameters:
T
- the operations result type.- Parameters:
operation
- the write operation.session
- the session to associate this operation withcallback
- the callback to be called when the operation has been executed- Since:
- 3.6
-