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 public class AbortTransactionOperation extends TransactionOperation
Deprecated.An operation that aborts a transaction.- Since:
- 3.8
-
-
Constructor Summary
Constructors Constructor Description AbortTransactionOperation(WriteConcern writeConcern)Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected StringgetCommandName()Deprecated.Gets the command name.protected Function<BsonDocument,BsonDocument>getRetryCommandModifier()Deprecated.AbortTransactionOperationrecoveryToken(BsonDocument recoveryToken)Deprecated.Set the recovery token.-
Methods inherited from class com.mongodb.operation.TransactionOperation
execute, executeAsync, getWriteConcern
-
-
-
-
Constructor Detail
-
AbortTransactionOperation
public AbortTransactionOperation(WriteConcern writeConcern)
Deprecated.Construct an instance.- Parameters:
writeConcern- the write concern
-
-
Method Detail
-
recoveryToken
public AbortTransactionOperation recoveryToken(BsonDocument recoveryToken)
Deprecated.Set the recovery token.- Parameters:
recoveryToken- the recovery token- Returns:
- the AbortTransactionOperation
- Since:
- 3.11
-
getCommandName
protected String getCommandName()
Deprecated.Description copied from class:TransactionOperationGets the command name.- Specified by:
getCommandNamein classTransactionOperation- Returns:
- the command name
-
getRetryCommandModifier
protected Function<BsonDocument,BsonDocument> getRetryCommandModifier()
Deprecated.- Specified by:
getRetryCommandModifierin classTransactionOperation
-
-