Package com.mongodb.operation
Interface OperationExecutor
-
@Deprecated public interface OperationExecutor
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> 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 Detail
-
execute
<T> T execute(ReadOperation<T> operation, ReadPreference readPreference)
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
<T> T execute(WriteOperation<T> operation)
Deprecated.Execute the write operation.- Type Parameters:
T
- the operations result type.- Parameters:
operation
- the write operation.- Returns:
- the result of executing the operation.
-
-