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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KahaDBTransactionStore
public KahaDBTransactionStore(KahaDBStore theStore)
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:
prepare in interface TransactionStore
- Throws:
IOException- See Also:
TransactionStore.prepare(TransactionId)
getTx
public KahaDBTransactionStore.Tx getTx(Object txid)
commit
public void commit(org.apache.activemq.command.TransactionId txid,
boolean wasPrepared,
Runnable preCommit,
Runnable postCommit)
throws IOException
- Specified by:
commit in interface TransactionStore
- Throws:
IOException
rollback
public void rollback(org.apache.activemq.command.TransactionId txid)
throws IOException
- Specified by:
rollback in interface TransactionStore
- Throws:
IOException- See Also:
TransactionStore.rollback(TransactionId)
forgetRecoveredAcks
protected void forgetRecoveredAcks(org.apache.activemq.command.TransactionId txid)
throws IOException
- Throws:
IOException
start
public void start()
throws Exception
- Specified by:
start in interface org.apache.activemq.Service
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop in interface org.apache.activemq.Service
- Throws:
Exception
recover
public void recover(TransactionRecoveryListener listener)
throws IOException
- Specified by:
recover in interface TransactionStore
- Throws:
IOException
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.