Package org.apache.activemq.store.kahadb
Class KahaDBTransactionStore
- java.lang.Object
-
- org.apache.activemq.store.kahadb.KahaDBTransactionStore
-
- All Implemented Interfaces:
org.apache.activemq.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 static classKahaDBTransactionStore.AddMessageCommandstatic classKahaDBTransactionStore.RemoveMessageCommandclassKahaDBTransactionStore.Tx
-
Constructor Summary
Constructors Constructor Description KahaDBTransactionStore(KahaDBStore theStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(org.apache.activemq.command.TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit)protected voidforgetRecoveredAcks(org.apache.activemq.command.TransactionId txid, boolean isRollback)voidprepare(org.apache.activemq.command.TransactionId txid)MessageStoreproxy(MessageStore messageStore)TopicMessageStoreproxy(TopicMessageStore messageStore)voidrecover(TransactionRecoveryListener listener)voidrollback(org.apache.activemq.command.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(org.apache.activemq.command.TransactionId txid) throws IOException- Specified by:
preparein interfaceTransactionStore- Throws:
IOException- See Also:
TransactionStore.prepare(TransactionId)
-
commit
public void commit(org.apache.activemq.command.TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) throws IOException- Specified by:
commitin interfaceTransactionStore- Throws:
IOException
-
rollback
public void rollback(org.apache.activemq.command.TransactionId txid) throws IOException- Specified by:
rollbackin interfaceTransactionStore- Throws:
IOException- See Also:
TransactionStore.rollback(TransactionId)
-
forgetRecoveredAcks
protected void forgetRecoveredAcks(org.apache.activemq.command.TransactionId txid, boolean isRollback) throws IOException- Throws:
IOException
-
start
public void start() throws Exception- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
Exception
-
recover
public void recover(TransactionRecoveryListener listener) throws IOException
- Specified by:
recoverin interfaceTransactionStore- Throws:
IOException
-
-