Package com.mongodb.operation
Interface AsyncOperationExecutor
- 
@Deprecated public interface AsyncOperationExecutor
Deprecated.there is no replacement for this interfaceAn interface describing the execution of a read or a write operation.- Since:
 - 3.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T> voidexecute(AsyncReadOperation<T> operation, ReadPreference readPreference, SingleResultCallback<T> callback)Deprecated.Execute the read operation with the given read preference.<T> voidexecute(AsyncReadOperation<T> operation, ReadPreference readPreference, ClientSession session, SingleResultCallback<T> callback)Deprecated.Execute the read operation with the given read preference.<T> voidexecute(AsyncWriteOperation<T> operation, SingleResultCallback<T> callback)Deprecated.Execute the write operation.<T> voidexecute(AsyncWriteOperation<T> operation, ClientSession session, SingleResultCallback<T> callback)Deprecated.Execute the write operation. 
 - 
 
- 
- 
Method Detail
- 
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
<T> void execute(AsyncWriteOperation<T> operation, SingleResultCallback<T> callback)
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
 
 
 - 
 
 -