org.apache.activemq.store.journal
Class QuickJournalTransactionStore

java.lang.Object
  extended by org.apache.activemq.store.journal.QuickJournalTransactionStore
All Implemented Interfaces:
Service, TransactionStore

public class QuickJournalTransactionStore
extends java.lang.Object
implements TransactionStore


Nested Class Summary
static class QuickJournalTransactionStore.Tx
          Operations
static class QuickJournalTransactionStore.TxOperation
           
 
Constructor Summary
QuickJournalTransactionStore(QuickJournalPersistenceAdapter adapter)
           
 
Method Summary
 void acknowledge(QuickJournalTopicMessageStore store, JournalTopicAck ack, org.apache.activeio.journal.RecordLocation location)
           
 org.apache.activeio.journal.RecordLocation checkpoint()
           
 void commit(TransactionId txid, boolean wasPrepared)
           
 QuickJournalTransactionStore.Tx getTx(java.lang.Object txid, org.apache.activeio.journal.RecordLocation location)
           
 boolean isDoingRecover()
           
 void prepare(TransactionId txid)
           
 void recover(TransactionRecoveryListener listener)
           
 void removeMessage(QuickJournalMessageStore store, MessageAck ack, org.apache.activeio.journal.RecordLocation location)
           
 QuickJournalTransactionStore.Tx replayCommit(TransactionId txid, boolean wasPrepared)
           
 void replayPrepare(TransactionId txid)
           
 void replayRollback(TransactionId txid)
           
 void rollback(TransactionId txid)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickJournalTransactionStore

public QuickJournalTransactionStore(QuickJournalPersistenceAdapter adapter)
Method Detail

prepare

public void prepare(TransactionId txid)
             throws java.io.IOException
Specified by:
prepare in interface TransactionStore
Throws:
java.io.IOException
See Also:
TransactionStore.prepare(TransactionId)

replayPrepare

public void replayPrepare(TransactionId txid)
                   throws java.io.IOException
Throws:
java.io.IOException
See Also:
TransactionStore.prepare(TransactionId)

getTx

public QuickJournalTransactionStore.Tx getTx(java.lang.Object txid,
                                             org.apache.activeio.journal.RecordLocation location)

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)

replayCommit

public QuickJournalTransactionStore.Tx replayCommit(TransactionId txid,
                                                    boolean wasPrepared)
                                             throws java.io.IOException
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)
              throws java.io.IOException
Specified by:
rollback in interface TransactionStore
Throws:
java.io.IOException
See Also:
TransactionStore.rollback(TransactionId)

replayRollback

public void replayRollback(TransactionId txid)
                    throws java.io.IOException
Throws:
java.io.IOException
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

removeMessage

public void removeMessage(QuickJournalMessageStore store,
                          MessageAck ack,
                          org.apache.activeio.journal.RecordLocation location)
                   throws java.io.IOException
Parameters:
ack -
Throws:
java.io.IOException

acknowledge

public void acknowledge(QuickJournalTopicMessageStore store,
                        JournalTopicAck ack,
                        org.apache.activeio.journal.RecordLocation location)

checkpoint

public org.apache.activeio.journal.RecordLocation checkpoint()
                                                      throws java.io.IOException
Throws:
java.io.IOException

isDoingRecover

public boolean isDoingRecover()


Copyright © 2011 Apache Software Foundation. All Rights Reserved.