Package org.apache.activemq.store.kahadb
Class KahaDBTransactionStore
- java.lang.Object
-
- org.apache.activemq.store.kahadb.KahaDBTransactionStore
-
- All Implemented Interfaces:
Service,TransactionStore
public class KahaDBTransactionStore extends Object implements TransactionStore
Provides a TransactionStore implementation that can create transaction aware MessageStore objects from non transaction aware MessageStore objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classKahaDBTransactionStore.AddMessageCommandclassKahaDBTransactionStore.RemoveMessageCommandclassKahaDBTransactionStore.Tx
-
Constructor Summary
Constructors Constructor Description KahaDBTransactionStore(KahaDBStore theStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit)protected voidforgetRecoveredAcks(TransactionId txid, boolean isRollback)KahaDBTransactionStore.TxgetTx(Object txid)voidprepare(TransactionId txid)MessageStoreproxy(MessageStore messageStore)TopicMessageStoreproxy(TopicMessageStore messageStore)voidrecover(TransactionRecoveryListener listener)voidrollback(TransactionId txid)voidstart()voidstop()
-
-
-
Constructor Detail
-
KahaDBTransactionStore
public KahaDBTransactionStore(KahaDBStore theStore)
-
-
Method Detail
-
proxy
public MessageStore proxy(MessageStore messageStore)
-
proxy
public TopicMessageStore proxy(TopicMessageStore messageStore)
-
prepare
public void prepare(TransactionId txid) throws IOException
- Specified by:
preparein interfaceTransactionStore- Throws:
IOException- See Also:
TransactionStore.prepare(TransactionId)
-
getTx
public KahaDBTransactionStore.Tx getTx(Object txid)
-
commit
public void commit(TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) throws IOException
- Specified by:
commitin interfaceTransactionStore- Throws:
IOException
-
rollback
public void rollback(TransactionId txid) throws IOException
- Specified by:
rollbackin interfaceTransactionStore- Throws:
IOException- See Also:
TransactionStore.rollback(TransactionId)
-
forgetRecoveredAcks
protected void forgetRecoveredAcks(TransactionId txid, boolean isRollback) throws IOException
- Throws:
IOException
-
start
public void start() throws Exception
-
recover
public void recover(TransactionRecoveryListener listener) throws IOException
- Specified by:
recoverin interfaceTransactionStore- Throws:
IOException
-
-