Package org.apache.activemq.store.kahadb
Class MultiKahaDBTransactionStore
- java.lang.Object
-
- org.apache.activemq.store.kahadb.MultiKahaDBTransactionStore
-
- All Implemented Interfaces:
org.apache.activemq.Service,TransactionStore
public class MultiKahaDBTransactionStore extends Object implements TransactionStore
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMultiKahaDBTransactionStore.Tx
-
Constructor Summary
Constructors Constructor Description MultiKahaDBTransactionStore(MultiKahaDBPersistenceAdapter multiKahaDBPersistenceAdapter)
-
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)voiddeleteAllMessages()longgetJournalCleanupInterval()intgetJournalMaxFileLength()intgetJournalMaxWriteBatchSize()MultiKahaDBTransactionStore.TxgetTx(org.apache.activemq.command.TransactionId txid)booleanisCheckForCorruption()JournalCommand<?>load(Location location)voidpersistCompletion(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)MessageStoreproxy(TransactionStore transactionStore, MessageStore messageStore)TopicMessageStoreproxy(TransactionStore transactionStore, TopicMessageStore messageStore)voidrecover(TransactionRecoveryListener listener)MultiKahaDBTransactionStore.TxremoveTx(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 Detail
-
MultiKahaDBTransactionStore
public MultiKahaDBTransactionStore(MultiKahaDBPersistenceAdapter multiKahaDBPersistenceAdapter)
-
-
Method Detail
-
proxy
public MessageStore proxy(TransactionStore transactionStore, MessageStore messageStore)
-
proxy
public TopicMessageStore proxy(TransactionStore transactionStore, 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
public MultiKahaDBTransactionStore.Tx getTx(org.apache.activemq.command.TransactionId txid)
-
removeTx
public MultiKahaDBTransactionStore.Tx removeTx(org.apache.activemq.command.TransactionId txid)
-
prepare
public void prepare(org.apache.activemq.command.TransactionId txid) throws IOException- Specified by:
preparein interfaceTransactionStore- Throws:
IOException
-
commit
public void commit(org.apache.activemq.command.TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) throws IOException- Specified by:
commitin interfaceTransactionStore- Throws:
IOException
-
persistOutcome
public void persistOutcome(MultiKahaDBTransactionStore.Tx tx, org.apache.activemq.command.TransactionId txid) throws IOException
- Throws:
IOException
-
persistCompletion
public void persistCompletion(org.apache.activemq.command.TransactionId txid) throws IOException- Throws:
IOException
-
rollback
public void rollback(org.apache.activemq.command.TransactionId txid) throws IOException- Specified by:
rollbackin interfaceTransactionStore- 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
-
load
public JournalCommand<?> load(Location location) throws IOException
- Throws:
IOException
-
process
public void process(Location location, JournalCommand<?> command) throws IOException
- Throws:
IOException
-
recover
public void recover(TransactionRecoveryListener listener) throws IOException
- Specified by:
recoverin interfaceTransactionStore- Throws:
IOException
-
-