Package com.mongodb.operation
Class CommandWriteOperation<T>
java.lang.Object
com.mongodb.operation.CommandWriteOperation<T>
- Type Parameters:
T
- the operations result type.
- All Implemented Interfaces:
AsyncWriteOperation<T>
,WriteOperation<T>
@Deprecated
public class CommandWriteOperation<T>
extends Object
implements AsyncWriteOperation<T>, WriteOperation<T>
Deprecated.
An operation that executes an arbitrary command that writes to the server.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionCommandWriteOperation
(String databaseName, BsonDocument command, Decoder<T> decoder) Deprecated.Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(WriteBinding binding) Deprecated.General execute which can return anything of type Tvoid
executeAsync
(AsyncWriteBinding binding, SingleResultCallback<T> callback) Deprecated.General execute which can return anything of type T
-
Constructor Details
-
CommandWriteOperation
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:WriteOperation
General execute which can return anything of type T- Specified by:
execute
in interfaceWriteOperation<T>
- Parameters:
binding
- the binding to execute in the context of- Returns:
- T, the result of the execution
-
executeAsync
Deprecated.Description copied from interface:AsyncWriteOperation
General execute which can return anything of type T- Specified by:
executeAsync
in interfaceAsyncWriteOperation<T>
- Parameters:
binding
- the binding to execute in the context ofcallback
- the callback to be called when the operation has been executed
-