Package com.mongodb.operation
Class CommitTransactionOperation
- java.lang.Object
-
- com.mongodb.operation.TransactionOperation
-
- com.mongodb.operation.CommitTransactionOperation
-
- All Implemented Interfaces:
AsyncWriteOperation<Void>,WriteOperation<Void>
Deprecated.
@Deprecated public class CommitTransactionOperation extends TransactionOperation
An operation that commits a transaction.- Since:
- 3.8
-
-
Constructor Summary
Constructors Constructor Description CommitTransactionOperation(WriteConcern writeConcern)Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Voidexecute(WriteBinding binding)Deprecated.General execute which can return anything of type TvoidexecuteAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback)Deprecated.General execute which can return anything of type Tprotected StringgetCommandName()Deprecated.Gets the command name.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class com.mongodb.operation.TransactionOperation
getWriteConcern
-
-
-
-
Constructor Detail
-
CommitTransactionOperation
public CommitTransactionOperation(WriteConcern writeConcern)
Deprecated.Construct an instance.- Parameters:
writeConcern- the write concern
-
-
Method Detail
-
execute
public Void execute(WriteBinding binding)
Deprecated.Description copied from interface:WriteOperationGeneral execute which can return anything of type T- Specified by:
executein interfaceWriteOperation<Void>- Overrides:
executein classTransactionOperation- Parameters:
binding- the binding to execute in the context of- Returns:
- T, the result of the execution
-
executeAsync
public void executeAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback)
Deprecated.Description copied from interface:AsyncWriteOperationGeneral execute which can return anything of type T- Specified by:
executeAsyncin interfaceAsyncWriteOperation<Void>- Overrides:
executeAsyncin classTransactionOperation- Parameters:
binding- the binding to execute in the context ofcallback- the callback to be called when the operation has been executed
-
getCommandName
protected String getCommandName()
Deprecated.Description copied from class:TransactionOperationGets the command name.- Specified by:
getCommandNamein classTransactionOperation- Returns:
- the command name
-
-