Package com.mongodb.operation
Class AbortTransactionOperation
java.lang.Object
com.mongodb.operation.TransactionOperation
com.mongodb.operation.AbortTransactionOperation
- All Implemented Interfaces:
AsyncWriteOperation<Void>,WriteOperation<Void>
Deprecated.
An operation that aborts a transaction.
- Since:
- 3.8
-
Constructor Summary
ConstructorsConstructorDescriptionAbortTransactionOperation(WriteConcern writeConcern) Deprecated.Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionrecoveryToken(BsonDocument recoveryToken) Deprecated.Set the recovery token.Methods inherited from class com.mongodb.operation.TransactionOperation
execute, executeAsync, getWriteConcern
-
Constructor Details
-
AbortTransactionOperation
Deprecated.Construct an instance.- Parameters:
writeConcern- the write concern
-
-
Method Details
-
recoveryToken
Deprecated.Set the recovery token.- Parameters:
recoveryToken- the recovery token- Returns:
- the AbortTransactionOperation
- Since:
- 3.11
-