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,MessageStore
- Enclosing class:
- TempKahaDBStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.activemq.store.MessageStore
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(ConnectionContext context, org.apache.activemq.command.Message message) org.apache.activemq.command.ActiveMQDestinationorg.apache.activemq.command.MessagegetMessage(org.apache.activemq.command.MessageId identity) getType()voidrecover(MessageRecoveryListener listener) voidvoidrecoverNextMessages(int maxReturned, MessageRecoveryListener listener) voidremoveAllMessages(ConnectionContext context) voidremoveMessage(ConnectionContext context, org.apache.activemq.command.MessageAck ack) voidvoidsetBatch(org.apache.activemq.command.MessageId identity) voidsetMemoryUsage(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 interfaceMessageStore- Overrides:
getDestinationin classAbstractMessageStore
-
addMessage
public void addMessage(ConnectionContext context, org.apache.activemq.command.Message message) throws IOException - Throws:
IOException
-
removeMessage
public void removeMessage(ConnectionContext context, org.apache.activemq.command.MessageAck ack) throws IOException - Throws:
IOException
-
removeAllMessages
- Throws:
IOException
-
getMessage
public org.apache.activemq.command.Message getMessage(org.apache.activemq.command.MessageId identity) throws IOException - Throws:
IOException
-
recover
- Throws:
Exception
-
recoverNextMessages
- Throws:
Exception
-
resetBatching
public void resetBatching() -
setBatch
- Specified by:
setBatchin interfaceMessageStore- Overrides:
setBatchin classAbstractMessageStore- Throws:
IOException
-
setMemoryUsage
- Specified by:
setMemoryUsagein interfaceMessageStore- Overrides:
setMemoryUsagein classAbstractMessageStore
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Overrides:
startin classAbstractMessageStore- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Overrides:
stopin classAbstractMessageStore- Throws:
Exception
-
recoverMessageStoreStatistics
- Overrides:
recoverMessageStoreStatisticsin classAbstractMessageStore- Throws:
IOException
-
getType
-