@Deprecated public class CommitTransactionOperation extends TransactionOperation
| Constructor and Description |
|---|
CommitTransactionOperation(WriteConcern writeConcern)
Deprecated.
Construct an instance.
|
CommitTransactionOperation(WriteConcern writeConcern,
boolean alreadyCommitted)
Deprecated.
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Void |
execute(WriteBinding binding)
Deprecated.
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<java.lang.Void> callback)
Deprecated.
General execute which can return anything of type T
|
java.lang.Long |
getMaxCommitTime(java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Gets the maximum amount of time to allow a single commitTransaction command to execute.
|
CommitTransactionOperation |
maxCommitTime(java.lang.Long maxCommitTime,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Sets the maximum execution time on the server for the commitTransaction operation.
|
CommitTransactionOperation |
recoveryToken(BsonDocument recoveryToken)
Deprecated.
Set the recovery token.
|
getWriteConcernpublic CommitTransactionOperation(WriteConcern writeConcern)
writeConcern - the write concernpublic CommitTransactionOperation(WriteConcern writeConcern, boolean alreadyCommitted)
writeConcern - the write concernalreadyCommitted - if the transaction has already been committed.public CommitTransactionOperation recoveryToken(BsonDocument recoveryToken)
recoveryToken - the recovery tokenpublic CommitTransactionOperation maxCommitTime(@Nullable java.lang.Long maxCommitTime, java.util.concurrent.TimeUnit timeUnit)
maxCommitTime - the max commit time, which must be either null or greater than zero, in the given time unittimeUnit - the time unit, which may not be null@Nullable public java.lang.Long getMaxCommitTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit - the time unit to return the result inpublic java.lang.Void execute(WriteBinding binding)
WriteOperationexecute in interface WriteOperation<java.lang.Void>execute in class TransactionOperationbinding - the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<java.lang.Void> callback)
AsyncWriteOperationexecuteAsync in interface AsyncWriteOperation<java.lang.Void>executeAsync in class TransactionOperationbinding - the binding to execute in the context ofcallback - the callback to be called when the operation has been executedCopyright © 2010 - 2023 Adobe. All Rights Reserved