Package org.apache.activemq.store.memory
Class MemoryTransactionStore
java.lang.Object
org.apache.activemq.store.memory.MemoryTransactionStore
- All Implemented Interfaces:
org.apache.activemq.Service,TransactionStore
Provides a TransactionStore implementation that can create transaction aware
MessageStore objects from non transaction aware MessageStore objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BrokerServiceprotected ConcurrentMap<Object,MemoryTransactionStore.Tx> protected final PersistenceAdapterprotected Map<org.apache.activemq.command.TransactionId,MemoryTransactionStore.Tx> -
Constructor Summary
ConstructorsConstructorDescriptionMemoryTransactionStore(PersistenceAdapter persistenceAdapter, BrokerService brokerService) -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(TopicMessageStore destination, String clientId, String subscriptionName, org.apache.activemq.command.MessageId messageId, org.apache.activemq.command.MessageAck ack) voidcommit(org.apache.activemq.command.TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) voiddelete()getPreparedTx(org.apache.activemq.command.TransactionId txid) protected voidonProxyQueueStore(ProxyMessageStore proxyMessageStore) protected voidonProxyTopicStore(ProxyTopicMessageStore proxyTopicMessageStore) protected voidvoidprepare(org.apache.activemq.command.TransactionId txid) proxy(MessageStore messageStore) proxy(TopicMessageStore messageStore) voidrecover(TransactionRecoveryListener listener) voidrollback(org.apache.activemq.command.TransactionId txid) voidstart()voidstop()
-
Field Details
-
inflightTransactions
-
preparedTransactions
protected Map<org.apache.activemq.command.TransactionId,MemoryTransactionStore.Tx> preparedTransactions -
persistenceAdapter
-
brokerService
-
-
Constructor Details
-
MemoryTransactionStore
-
-
Method Details
-
proxy
-
onProxyQueueStore
-
proxy
-
onProxyTopicStore
-
prepare
- Specified by:
preparein interfaceTransactionStore- Throws:
IOException- See Also:
-
getTx
-
getPreparedTx
-
commit
public void commit(org.apache.activemq.command.TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) throws IOException - Specified by:
commitin interfaceTransactionStore- Throws:
IOException
-
rollback
- Specified by:
rollbackin interfaceTransactionStore- Throws:
IOException- See Also:
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
Exception
-
recover
- Specified by:
recoverin interfaceTransactionStore- Throws:
IOException
-
onRecovered
-
acknowledge
public void acknowledge(TopicMessageStore destination, String clientId, String subscriptionName, org.apache.activemq.command.MessageId messageId, org.apache.activemq.command.MessageAck ack) throws IOException - Throws:
IOException
-
delete
public void delete()
-