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, wait
getWriteConcern
public CommitTransactionOperation(WriteConcern writeConcern)
writeConcern
- the write concernpublic Void execute(WriteBinding binding)
WriteOperation
execute
in interface WriteOperation<Void>
execute
in class TransactionOperation
binding
- the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback)
AsyncWriteOperation
executeAsync
in interface AsyncWriteOperation<Void>
executeAsync
in class TransactionOperation
binding
- the binding to execute in the context ofcallback
- the callback to be called when the operation has been executedprotected String getCommandName()
TransactionOperation
getCommandName
in class TransactionOperation