Package com.mongodb.operation
Class CommandReadOperation<T>
java.lang.Object
com.mongodb.operation.CommandReadOperation<T>
- Type Parameters:
T- the operations result type.
- All Implemented Interfaces:
AsyncReadOperation<T>,ReadOperation<T>
@Deprecated
public class CommandReadOperation<T>
extends Object
implements AsyncReadOperation<T>, ReadOperation<T>
Deprecated.
An operation that executes an arbitrary command that reads from the server.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionCommandReadOperation(String databaseName, BsonDocument command, Decoder<T> decoder) Deprecated.Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionexecute(ReadBinding binding) Deprecated.General execute which can return anything of type TvoidexecuteAsync(AsyncReadBinding binding, SingleResultCallback<T> callback) Deprecated.General execute which can return anything of type T
-
Constructor Details
-
CommandReadOperation
Deprecated.Construct a new instance.- Parameters:
databaseName- the name of the database for the operation.command- the command to execute.decoder- the decoder for the result documents.
-
-
Method Details
-
execute
Deprecated.Description copied from interface:ReadOperationGeneral execute which can return anything of type T- Specified by:
executein interfaceReadOperation<T>- Parameters:
binding- the binding to execute in the context of- Returns:
- T, the result of the execution
-
executeAsync
Deprecated.Description copied from interface:AsyncReadOperationGeneral execute which can return anything of type T- Specified by:
executeAsyncin interfaceAsyncReadOperation<T>- Parameters:
binding- the binding to execute in the context ofcallback- the callback to be called when the operation has been executed
-