AsyncWriteOperation<Void>, WriteOperation<Void>public class CommitTransactionOperation extends TransactionOperation
| Constructor | Description |
|---|---|
CommitTransactionOperation(WriteConcern writeConcern) |
Construct an instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
Void |
execute(WriteBinding binding) |
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<Void> callback) |
General execute which can return anything of type T
|
protected String |
getCommandName() |
Gets the command name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWriteConcernpublic CommitTransactionOperation(WriteConcern writeConcern)
writeConcern - the write concernpublic Void execute(WriteBinding binding)
WriteOperationexecute in interface WriteOperation<Void>execute in class TransactionOperationbinding - the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback)
AsyncWriteOperationexecuteAsync in interface AsyncWriteOperation<Void>executeAsync in class TransactionOperationbinding - the binding to execute in the context ofcallback - the callback to be called when the operation has been executedprotected String getCommandName()
TransactionOperationgetCommandName in class TransactionOperation