public class CommitTransactionOperation extends TransactionOperation
Constructor and Description |
---|
CommitTransactionOperation(WriteConcern writeConcern)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
execute(WriteBinding binding)
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<java.lang.Void> callback)
General execute which can return anything of type T
|
getWriteConcern
public CommitTransactionOperation(WriteConcern writeConcern)
writeConcern
- the write concernpublic java.lang.Void execute(WriteBinding binding)
WriteOperation
execute
in interface WriteOperation<java.lang.Void>
execute
in class TransactionOperation
binding
- the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<java.lang.Void> callback)
AsyncWriteOperation
executeAsync
in interface AsyncWriteOperation<java.lang.Void>
executeAsync
in class TransactionOperation
binding
- the binding to execute in the context ofcallback
- the callback to be called when the operation has been executedCopyright © 2010 - 2020 Adobe. All Rights Reserved