public class JournalTransactionStore extends Object implements TransactionStore
| Modifier and Type | Class and Description |
|---|---|
static class |
JournalTransactionStore.Tx
Operations
|
static class |
JournalTransactionStore.TxOperation |
| Constructor and Description |
|---|
JournalTransactionStore(JournalPersistenceAdapter adapter) |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge(JournalTopicMessageStore store,
org.apache.activemq.command.JournalTopicAck ack,
org.apache.activeio.journal.RecordLocation location) |
org.apache.activeio.journal.RecordLocation |
checkpoint() |
void |
commit(org.apache.activemq.command.TransactionId txid,
boolean wasPrepared,
Runnable preCommit,
Runnable postCommit) |
JournalTransactionStore.Tx |
getTx(Object txid,
org.apache.activeio.journal.RecordLocation location) |
boolean |
isDoingRecover() |
void |
prepare(org.apache.activemq.command.TransactionId txid) |
void |
recover(TransactionRecoveryListener listener) |
void |
removeMessage(JournalMessageStore store,
org.apache.activemq.command.MessageAck ack,
org.apache.activeio.journal.RecordLocation location) |
JournalTransactionStore.Tx |
replayCommit(org.apache.activemq.command.TransactionId txid,
boolean wasPrepared) |
void |
replayPrepare(org.apache.activemq.command.TransactionId txid) |
void |
replayRollback(org.apache.activemq.command.TransactionId txid) |
void |
rollback(org.apache.activemq.command.TransactionId txid) |
void |
start() |
void |
stop() |
public JournalTransactionStore(JournalPersistenceAdapter adapter)
public void prepare(org.apache.activemq.command.TransactionId txid) throws IOException
prepare in interface TransactionStoreIOExceptionTransactionStore.prepare(TransactionId)public void replayPrepare(org.apache.activemq.command.TransactionId txid) throws IOException
IOExceptionTransactionStore.prepare(TransactionId)public JournalTransactionStore.Tx getTx(Object txid, org.apache.activeio.journal.RecordLocation location)
public void commit(org.apache.activemq.command.TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) throws IOException
commit in interface TransactionStoreXAExceptionIOExceptionorg.apache.activemq.store.TransactionStore#commit(org.apache.activemq.service.Transaction)public JournalTransactionStore.Tx replayCommit(org.apache.activemq.command.TransactionId txid, boolean wasPrepared) throws IOException
XAExceptionIOExceptionorg.apache.activemq.store.TransactionStore#commit(org.apache.activemq.service.Transaction)public void rollback(org.apache.activemq.command.TransactionId txid) throws IOException
rollback in interface TransactionStoreIOExceptionTransactionStore.rollback(TransactionId)public void replayRollback(org.apache.activemq.command.TransactionId txid) throws IOException
IOExceptionTransactionStore.rollback(TransactionId)public void start() throws Exception
start in interface org.apache.activemq.ServiceExceptionpublic void stop() throws Exception
stop in interface org.apache.activemq.ServiceExceptionpublic void recover(TransactionRecoveryListener listener) throws IOException
recover in interface TransactionStoreIOExceptionpublic void removeMessage(JournalMessageStore store, org.apache.activemq.command.MessageAck ack, org.apache.activeio.journal.RecordLocation location) throws IOException
ack - IOExceptionpublic void acknowledge(JournalTopicMessageStore store, org.apache.activemq.command.JournalTopicAck ack, org.apache.activeio.journal.RecordLocation location)
public org.apache.activeio.journal.RecordLocation checkpoint() throws IOException
IOExceptionpublic boolean isDoingRecover()
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.