Package org.apache.activemq.store.kahadb
Class KahaDBStore.KahaDBMessageStore
java.lang.Object
org.apache.activemq.store.AbstractMessageStore
org.apache.activemq.store.kahadb.KahaDBStore.KahaDBMessageStore
- All Implemented Interfaces:
org.apache.activemq.Service,org.apache.activemq.store.MessageStore
- Enclosing class:
- KahaDBStore
public class KahaDBStore.KahaDBMessageStore
extends org.apache.activemq.store.AbstractMessageStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.activemq.store.MessageStore
org.apache.activemq.store.MessageStore.StoreType -
Field Summary
FieldsFields inherited from class org.apache.activemq.store.AbstractMessageStore
destination, FUTURE, indexListener, messageStoreStatistics, prioritizedMessages -
Constructor Summary
ConstructorsConstructorDescriptionKahaDBMessageStore(org.apache.activemq.command.ActiveMQDestination destination) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidaddMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.Message message) org.apache.activemq.store.ListenableFuture<Object>asyncAddQueueMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.Message message) voidforgetRecoveredAcks(ArrayList<org.apache.activemq.command.MessageAck> acks, boolean rollback) org.apache.activemq.command.MessagegetMessage(org.apache.activemq.command.MessageId identity) org.apache.activemq.store.MessageStore.StoreTypegetType()booleanisEmpty()protected voidvoidrecover(org.apache.activemq.store.MessageRecoveryListener listener) voidrecoverMessages(org.apache.activemq.store.MessageRecoveryContext messageRecoveryContext) protected voidvoidrecoverNextMessages(int maxReturned, org.apache.activemq.store.MessageRecoveryListener listener) protected voidvoidremoveAllMessages(org.apache.activemq.broker.ConnectionContext context) voidremoveAsyncMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.MessageAck ack) voidremoveMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.MessageAck ack) voidvoidsetBatch(org.apache.activemq.command.MessageId identity) toString()voidtrackRecoveredAcks(ArrayList<org.apache.activemq.command.MessageAck> acks) protected voidvoidupdateMessage(org.apache.activemq.command.Message message) Methods inherited from class org.apache.activemq.store.AbstractMessageStore
addMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, getIndexListener, getMessageCount, getMessageSize, getMessageStoreStatistics, isPrioritizedMessages, registerIndexListener, setMemoryUsage, setPrioritizedMessages, start, stop
-
Field Details
-
dest
-
ackedAndPreparedMap
-
rolledBackAcksMap
-
-
Constructor Details
-
KahaDBMessageStore
public KahaDBMessageStore(org.apache.activemq.command.ActiveMQDestination destination)
-
-
Method Details
-
trackRecoveredAcks
-
forgetRecoveredAcks
public void forgetRecoveredAcks(ArrayList<org.apache.activemq.command.MessageAck> acks, boolean rollback) throws IOException - Throws:
IOException
-
asyncAddQueueMessage
public org.apache.activemq.store.ListenableFuture<Object> asyncAddQueueMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.Message message) throws IOException - Specified by:
asyncAddQueueMessagein interfaceorg.apache.activemq.store.MessageStore- Overrides:
asyncAddQueueMessagein classorg.apache.activemq.store.AbstractMessageStore- Throws:
IOException
-
removeAsyncMessage
public void removeAsyncMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.MessageAck ack) throws IOException - Specified by:
removeAsyncMessagein interfaceorg.apache.activemq.store.MessageStore- Overrides:
removeAsyncMessagein classorg.apache.activemq.store.AbstractMessageStore- Throws:
IOException
-
addMessage
public void addMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.Message message) throws IOException - Throws:
IOException
-
updateMessage
- Specified by:
updateMessagein interfaceorg.apache.activemq.store.MessageStore- Overrides:
updateMessagein classorg.apache.activemq.store.AbstractMessageStore- Throws:
IOException
-
removeMessage
public void removeMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.MessageAck ack) throws IOException - Throws:
IOException
-
removeAllMessages
public void removeAllMessages(org.apache.activemq.broker.ConnectionContext context) throws IOException - Throws:
IOException
-
getMessage
public org.apache.activemq.command.Message getMessage(org.apache.activemq.command.MessageId identity) throws IOException - Throws:
IOException
-
isEmpty
- Specified by:
isEmptyin interfaceorg.apache.activemq.store.MessageStore- Overrides:
isEmptyin classorg.apache.activemq.store.AbstractMessageStore- Throws:
IOException
-
recover
- Throws:
Exception
-
recoverNextMessages
public void recoverNextMessages(int maxReturned, org.apache.activemq.store.MessageRecoveryListener listener) throws Exception - Throws:
Exception
-
recoverMessages
public void recoverMessages(org.apache.activemq.store.MessageRecoveryContext messageRecoveryContext) throws Exception - Throws:
Exception
-
resetBatching
public void resetBatching() -
setBatch
- Specified by:
setBatchin interfaceorg.apache.activemq.store.MessageStore- Overrides:
setBatchin classorg.apache.activemq.store.AbstractMessageStore- Throws:
IOException
-
lockAsyncJobQueue
protected void lockAsyncJobQueue() -
unlockAsyncJobQueue
protected void unlockAsyncJobQueue() -
acquireLocalAsyncLock
protected void acquireLocalAsyncLock() -
releaseLocalAsyncLock
protected void releaseLocalAsyncLock() -
toString
-
recoverMessageStoreStatistics
- Overrides:
recoverMessageStoreStatisticsin classorg.apache.activemq.store.AbstractMessageStore- Throws:
IOException
-
getType
public org.apache.activemq.store.MessageStore.StoreType getType()
-