org.apache.activemq.store.journal
Class JournalTransactionStore
java.lang.Object
org.apache.activemq.store.journal.JournalTransactionStore
- All Implemented Interfaces:
- org.apache.activemq.Service, TransactionStore
public class JournalTransactionStore
- extends Object
- implements TransactionStore
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JournalTransactionStore
public JournalTransactionStore(JournalPersistenceAdapter adapter)
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)
replayPrepare
public void replayPrepare(org.apache.activemq.command.TransactionId txid)
throws IOException
- Throws:
IOException- See Also:
TransactionStore.prepare(TransactionId)
getTx
public JournalTransactionStore.Tx getTx(Object txid,
org.apache.activeio.journal.RecordLocation location)
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:
XAException
IOException- See Also:
org.apache.activemq.store.TransactionStore#commit(org.apache.activemq.service.Transaction)
replayCommit
public JournalTransactionStore.Tx replayCommit(org.apache.activemq.command.TransactionId txid,
boolean wasPrepared)
throws IOException
- Throws:
XAException
IOException- See Also:
org.apache.activemq.store.TransactionStore#commit(org.apache.activemq.service.Transaction)
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)
replayRollback
public void replayRollback(org.apache.activemq.command.TransactionId txid)
throws IOException
- Throws:
IOException- See Also:
TransactionStore.rollback(TransactionId)
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
removeMessage
public void removeMessage(JournalMessageStore store,
org.apache.activemq.command.MessageAck ack,
org.apache.activeio.journal.RecordLocation location)
throws IOException
- Parameters:
ack -
- Throws:
IOException
acknowledge
public void acknowledge(JournalTopicMessageStore store,
org.apache.activemq.command.JournalTopicAck ack,
org.apache.activeio.journal.RecordLocation location)
checkpoint
public org.apache.activeio.journal.RecordLocation checkpoint()
throws IOException
- Throws:
IOException
isDoingRecover
public boolean isDoingRecover()
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.