Class TransactionOperationAbstract
- java.lang.Object
-
- org.apache.activemq.artemis.core.transaction.TransactionOperationAbstract
-
- All Implemented Interfaces:
TransactionOperation
- Direct Known Subclasses:
FinishPageMessageOperation,RefsOperation,TXLargeMessageConfirmationOperation
public abstract class TransactionOperationAbstract extends Object implements TransactionOperation
Just a helper, when you don't want to implement all the methods on a transaction operation.
-
-
Constructor Summary
Constructors Constructor Description TransactionOperationAbstract()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransactionOperationAbstractafterCommit(Runnable run)voidafterCommit(Transaction tx)After commit shouldn't throw any exception.voidafterPrepare(Transaction tx)After prepare shouldn't throw any exception.voidafterRollback(Transaction tx)After rollback shouldn't throw any exception.voidbeforeCommit(Transaction tx)voidbeforePrepare(Transaction tx)voidbeforeRollback(Transaction tx)List<MessageReference>getListOnConsumer(long consumerID)List<MessageReference>getRelatedMessageReferences()
-
-
-
Method Detail
-
afterCommit
public static TransactionOperationAbstract afterCommit(Runnable run)
-
beforePrepare
public void beforePrepare(Transaction tx) throws Exception
- Specified by:
beforePreparein interfaceTransactionOperation- Throws:
Exception
-
afterPrepare
public void afterPrepare(Transaction tx)
After prepare shouldn't throw any exception.Any verification has to be done on before prepare
- Specified by:
afterPreparein interfaceTransactionOperation
-
beforeCommit
public void beforeCommit(Transaction tx) throws Exception
- Specified by:
beforeCommitin interfaceTransactionOperation- Throws:
Exception
-
afterCommit
public void afterCommit(Transaction tx)
After commit shouldn't throw any exception.Any verification has to be done on before commit
- Specified by:
afterCommitin interfaceTransactionOperation
-
beforeRollback
public void beforeRollback(Transaction tx) throws Exception
- Specified by:
beforeRollbackin interfaceTransactionOperation- Throws:
Exception
-
afterRollback
public void afterRollback(Transaction tx)
After rollback shouldn't throw any exception.Any verification has to be done on before rollback
- Specified by:
afterRollbackin interfaceTransactionOperation
-
getRelatedMessageReferences
public List<MessageReference> getRelatedMessageReferences()
- Specified by:
getRelatedMessageReferencesin interfaceTransactionOperation
-
getListOnConsumer
public List<MessageReference> getListOnConsumer(long consumerID)
- Specified by:
getListOnConsumerin interfaceTransactionOperation
-
-