Package org.apache.activemq.store.kahadb
Class TempKahaDBStore.KahaDBMessageStore
java.lang.Object
org.apache.activemq.store.AbstractMessageStore
org.apache.activemq.store.kahadb.TempKahaDBStore.KahaDBMessageStore
- All Implemented Interfaces:
org.apache.activemq.Service,org.apache.activemq.store.MessageStore
- Enclosing class:
- TempKahaDBStore
public class TempKahaDBStore.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 TypeMethodDescriptionvoidaddMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.Message message) org.apache.activemq.command.ActiveMQDestinationorg.apache.activemq.command.MessagegetMessage(org.apache.activemq.command.MessageId identity) org.apache.activemq.store.MessageStore.StoreTypegetType()voidrecover(org.apache.activemq.store.MessageRecoveryListener listener) voidvoidrecoverNextMessages(int maxReturned, org.apache.activemq.store.MessageRecoveryListener listener) voidremoveAllMessages(org.apache.activemq.broker.ConnectionContext context) voidremoveMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.MessageAck ack) voidvoidsetBatch(org.apache.activemq.command.MessageId identity) voidsetMemoryUsage(org.apache.activemq.usage.MemoryUsage memoryUsage) voidstart()voidstop()Methods inherited from class org.apache.activemq.store.AbstractMessageStore
addMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getIndexListener, getMessageCount, getMessageSize, getMessageStoreStatistics, isEmpty, isPrioritizedMessages, registerIndexListener, removeAsyncMessage, setPrioritizedMessages, updateMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.store.MessageStore
recoverMessages
-
Field Details
-
dest
-
-
Constructor Details
-
KahaDBMessageStore
public KahaDBMessageStore(org.apache.activemq.command.ActiveMQDestination destination)
-
-
Method Details
-
getDestination
public org.apache.activemq.command.ActiveMQDestination getDestination()- Specified by:
getDestinationin interfaceorg.apache.activemq.store.MessageStore- Overrides:
getDestinationin classorg.apache.activemq.store.AbstractMessageStore
-
addMessage
public void addMessage(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.Message message) throws IOException - 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
-
recover
- Throws:
Exception
-
recoverNextMessages
public void recoverNextMessages(int maxReturned, org.apache.activemq.store.MessageRecoveryListener listener) 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
-
setMemoryUsage
public void setMemoryUsage(org.apache.activemq.usage.MemoryUsage memoryUsage) - Specified by:
setMemoryUsagein interfaceorg.apache.activemq.store.MessageStore- Overrides:
setMemoryUsagein classorg.apache.activemq.store.AbstractMessageStore
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Overrides:
startin classorg.apache.activemq.store.AbstractMessageStore- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Overrides:
stopin classorg.apache.activemq.store.AbstractMessageStore- Throws:
Exception
-
recoverMessageStoreStatistics
- Overrides:
recoverMessageStoreStatisticsin classorg.apache.activemq.store.AbstractMessageStore- Throws:
IOException
-
getType
public org.apache.activemq.store.MessageStore.StoreType getType()
-