public static final class PostOfficeImpl.AddOperation extends Object implements TransactionOperation
Modifier and Type | Method and Description |
---|---|
void |
afterCommit(Transaction tx)
After commit shouldn't throw any exception.
|
void |
afterPrepare(Transaction tx)
After prepare shouldn't throw any exception.
|
void |
afterRollback(Transaction tx)
After rollback shouldn't throw any exception.
|
void |
beforeCommit(Transaction tx) |
void |
beforePrepare(Transaction tx) |
void |
beforeRollback(Transaction tx) |
List<MessageReference> |
getListOnConsumer(long consumerID) |
List<MessageReference> |
getRelatedMessageReferences() |
public void afterCommit(Transaction tx)
TransactionOperation
Any verification has to be done on before commit
afterCommit
in interface TransactionOperation
public void afterPrepare(Transaction tx)
TransactionOperation
Any verification has to be done on before prepare
afterPrepare
in interface TransactionOperation
public void afterRollback(Transaction tx)
TransactionOperation
Any verification has to be done on before rollback
afterRollback
in interface TransactionOperation
public void beforeCommit(Transaction tx) throws Exception
beforeCommit
in interface TransactionOperation
Exception
public void beforePrepare(Transaction tx) throws Exception
beforePrepare
in interface TransactionOperation
Exception
public void beforeRollback(Transaction tx) throws Exception
beforeRollback
in interface TransactionOperation
Exception
public List<MessageReference> getRelatedMessageReferences()
getRelatedMessageReferences
in interface TransactionOperation
public List<MessageReference> getListOnConsumer(long consumerID)
getListOnConsumer
in interface TransactionOperation
Copyright © 2017 JBoss by Red Hat. All rights reserved.