Class TransactionOperationAbstract
java.lang.Object
org.apache.activemq.artemis.core.transaction.TransactionOperationAbstract
- All Implemented Interfaces:
TransactionOperation
- Direct Known Subclasses:
FinishPageMessageOperation,RefsOperation,TXLargeMessageConfirmationOperation
Just a helper, when you don't want to implement all the methods on a transaction operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionOperationAbstractafterCommit(Runnable run) voidAfter commit shouldn't throw any exception.voidAfter prepare shouldn't throw any exception.voidAfter rollback shouldn't throw any exception.voidvoidvoidgetListOnConsumer(long consumerID)
-
Constructor Details
-
TransactionOperationAbstract
public TransactionOperationAbstract()
-
-
Method Details
-
afterCommit
-
beforePrepare
- Specified by:
beforePreparein interfaceTransactionOperation- Throws:
Exception
-
afterPrepare
After prepare shouldn't throw any exception.Any verification has to be done on before prepare
- Specified by:
afterPreparein interfaceTransactionOperation
-
beforeCommit
- Specified by:
beforeCommitin interfaceTransactionOperation- Throws:
Exception
-
afterCommit
After commit shouldn't throw any exception.Any verification has to be done on before commit
- Specified by:
afterCommitin interfaceTransactionOperation
-
beforeRollback
- Specified by:
beforeRollbackin interfaceTransactionOperation- Throws:
Exception
-
afterRollback
After rollback shouldn't throw any exception.Any verification has to be done on before rollback
- Specified by:
afterRollbackin interfaceTransactionOperation
-
getRelatedMessageReferences
- Specified by:
getRelatedMessageReferencesin interfaceTransactionOperation
-
getListOnConsumer
- Specified by:
getListOnConsumerin interfaceTransactionOperation
-