Package org.apache.activemq.store.kahadb
Class KahaDBTransactionStore
java.lang.Object
org.apache.activemq.store.kahadb.KahaDBTransactionStore
- All Implemented Interfaces:
org.apache.activemq.Service,org.apache.activemq.store.TransactionStore
public class KahaDBTransactionStore
extends Object
implements org.apache.activemq.store.TransactionStore
Provides a TransactionStore implementation that can create transaction aware
MessageStore objects from non transaction aware MessageStore objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classclass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(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) org.apache.activemq.store.MessageStoreproxy(org.apache.activemq.store.MessageStore messageStore) org.apache.activemq.store.TopicMessageStoreproxy(org.apache.activemq.store.TopicMessageStore messageStore) voidrecover(org.apache.activemq.store.TransactionRecoveryListener listener) voidrollback(org.apache.activemq.command.TransactionId txid) voidstart()voidstop()
-
Constructor Details
-
KahaDBTransactionStore
-
-
Method Details
-
proxy
public org.apache.activemq.store.MessageStore proxy(org.apache.activemq.store.MessageStore messageStore) -
proxy
public org.apache.activemq.store.TopicMessageStore proxy(org.apache.activemq.store.TopicMessageStore messageStore) -
prepare
- Specified by:
preparein interfaceorg.apache.activemq.store.TransactionStore- 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 interfaceorg.apache.activemq.store.TransactionStore- Throws:
IOException
-
rollback
- Specified by:
rollbackin interfaceorg.apache.activemq.store.TransactionStore- Throws:
IOException- See Also:
-
TransactionStore.rollback(TransactionId)
-
forgetRecoveredAcks
protected void forgetRecoveredAcks(org.apache.activemq.command.TransactionId txid, boolean isRollback) throws IOException - Throws:
IOException
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
Exception
-
recover
public void recover(org.apache.activemq.store.TransactionRecoveryListener listener) throws IOException - Specified by:
recoverin interfaceorg.apache.activemq.store.TransactionStore- Throws:
IOException
-