Package com.mongodb.operation
Interface OperationExecutor
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> T
execute
(ReadOperation<T> operation, ReadPreference readPreference) Deprecated.Execute the read operation with the given read preference.<T> T
execute
(WriteOperation<T> operation) Deprecated.Execute the write operation.
-
Method Details
-
execute
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.- Returns:
- the result of executing the operation.
-
execute
Deprecated.Execute the write operation.- Type Parameters:
T
- the operations result type.- Parameters:
operation
- the write operation.- Returns:
- the result of executing the operation.
-