Package org.apache.activemq.store.kahadb
Class MultiKahaDBTransactionStore
java.lang.Object
org.apache.activemq.store.kahadb.MultiKahaDBTransactionStore
- All Implemented Interfaces:
org.apache.activemq.Service,org.apache.activemq.store.TransactionStore
public class MultiKahaDBTransactionStore
extends Object
implements org.apache.activemq.store.TransactionStore
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMultiKahaDBTransactionStore(MultiKahaDBPersistenceAdapter multiKahaDBPersistenceAdapter) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(org.apache.activemq.command.TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) voidlongintintgetTx(org.apache.activemq.command.TransactionId txid) booleanvoidpersistCompletion(org.apache.activemq.command.TransactionId txid) voidpersistOutcome(MultiKahaDBTransactionStore.Tx tx, org.apache.activemq.command.TransactionId txid) voidprepare(org.apache.activemq.command.TransactionId txid) voidprocess(Location location, JournalCommand<?> command) org.apache.activemq.store.MessageStoreproxy(org.apache.activemq.store.TransactionStore transactionStore, org.apache.activemq.store.MessageStore messageStore) org.apache.activemq.store.TopicMessageStoreproxy(org.apache.activemq.store.TransactionStore transactionStore, org.apache.activemq.store.TopicMessageStore messageStore) voidrecover(org.apache.activemq.store.TransactionRecoveryListener listener) removeTx(org.apache.activemq.command.TransactionId txid) voidrollback(org.apache.activemq.command.TransactionId txid) voidsetCheckForCorruption(boolean checkForCorruption) voidsetJournalCleanupInterval(long journalCleanupInterval) voidsetJournalMaxFileLength(int journalMaxFileLength) voidsetJournalMaxWriteBatchSize(int journalWriteBatchSize) voidstart()voidstop()
-
Constructor Details
-
MultiKahaDBTransactionStore
-
-
Method Details
-
proxy
public org.apache.activemq.store.MessageStore proxy(org.apache.activemq.store.TransactionStore transactionStore, org.apache.activemq.store.MessageStore messageStore) -
proxy
public org.apache.activemq.store.TopicMessageStore proxy(org.apache.activemq.store.TransactionStore transactionStore, org.apache.activemq.store.TopicMessageStore messageStore) -
deleteAllMessages
public void deleteAllMessages() -
getJournalMaxFileLength
public int getJournalMaxFileLength() -
setJournalMaxFileLength
public void setJournalMaxFileLength(int journalMaxFileLength) -
getJournalMaxWriteBatchSize
public int getJournalMaxWriteBatchSize() -
setJournalMaxWriteBatchSize
public void setJournalMaxWriteBatchSize(int journalWriteBatchSize) -
setJournalCleanupInterval
public void setJournalCleanupInterval(long journalCleanupInterval) -
getJournalCleanupInterval
public long getJournalCleanupInterval() -
setCheckForCorruption
public void setCheckForCorruption(boolean checkForCorruption) -
isCheckForCorruption
public boolean isCheckForCorruption() -
getTx
-
removeTx
-
prepare
- Specified by:
preparein interfaceorg.apache.activemq.store.TransactionStore- Throws:
IOException
-
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
-
persistOutcome
public void persistOutcome(MultiKahaDBTransactionStore.Tx tx, org.apache.activemq.command.TransactionId txid) throws IOException - Throws:
IOException
-
persistCompletion
- Throws:
IOException
-
rollback
- Specified by:
rollbackin interfaceorg.apache.activemq.store.TransactionStore- Throws:
IOException
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
Exception
-
load
- Throws:
IOException
-
process
- Throws:
IOException
-
recover
public void recover(org.apache.activemq.store.TransactionRecoveryListener listener) throws IOException - Specified by:
recoverin interfaceorg.apache.activemq.store.TransactionStore- Throws:
IOException
-