org.apache.activemq.store.kahadaptor
Class KahaTransactionStore
java.lang.Object
org.apache.activemq.store.kahadaptor.KahaTransactionStore
- All Implemented Interfaces:
- Service, TransactionStore
public class KahaTransactionStore
- extends java.lang.Object
- implements TransactionStore
Provides a TransactionStore implementation that can create transaction aware MessageStore objects from non
transaction aware MessageStore objects.
- Version:
- $Revision: 1.4 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proxy
public MessageStore proxy(MessageStore messageStore)
proxy
public TopicMessageStore proxy(TopicMessageStore messageStore)
prepare
public void prepare(TransactionId txid)
- Specified by:
prepare
in interface TransactionStore
- See Also:
TransactionStore.prepare(TransactionId)
commit
public void commit(TransactionId txid,
boolean wasPrepared)
throws java.io.IOException
- Specified by:
commit
in interface TransactionStore
- Throws:
javax.transaction.xa.XAException
java.io.IOException
- See Also:
org.apache.activemq.store.TransactionStore#commit(org.apache.activemq.service.Transaction)
rollback
public void rollback(TransactionId txid)
- Specified by:
rollback
in interface TransactionStore
- See Also:
TransactionStore.rollback(TransactionId)
start
public void start()
throws java.lang.Exception
- Specified by:
start
in interface Service
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface Service
- Throws:
java.lang.Exception
recover
public void recover(TransactionRecoveryListener listener)
throws java.io.IOException
- Specified by:
recover
in interface TransactionStore
- Throws:
java.io.IOException
getTx
protected org.apache.activemq.store.kahadaptor.KahaTransaction getTx(TransactionId key)
getOrCreateTx
protected org.apache.activemq.store.kahadaptor.KahaTransaction getOrCreateTx(TransactionId key)
removeTx
protected void removeTx(TransactionId key)
delete
public void delete()
getStoreById
protected MessageStore getStoreById(java.lang.Object id)
Copyright © 2010 Apache Software Foundation. All Rights Reserved.