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
public class TempKahaDBStore.KahaDBMessageStore extends AbstractMessageStore
-
-
Field Summary
Fields Modifier and Type Field Description protected KahaDestinationdest-
Fields inherited from class org.apache.activemq.store.AbstractMessageStore
destination, FUTURE, indexListener, messageStoreStatistics, prioritizedMessages
-
-
Constructor Summary
Constructors Constructor Description KahaDBMessageStore(org.apache.activemq.command.ActiveMQDestination destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessage(ConnectionContext context, org.apache.activemq.command.Message message)org.apache.activemq.command.ActiveMQDestinationgetDestination()org.apache.activemq.command.MessagegetMessage(org.apache.activemq.command.MessageId identity)voidrecover(MessageRecoveryListener listener)voidrecoverMessageStoreStatistics()voidrecoverNextMessages(int maxReturned, MessageRecoveryListener listener)voidremoveAllMessages(ConnectionContext context)voidremoveMessage(ConnectionContext context, org.apache.activemq.command.MessageAck ack)voidresetBatching()voidsetBatch(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, updateMessage
-
-
-
-
Field Detail
-
dest
protected KahaDestination dest
-
-
Method Detail
-
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
public void removeAllMessages(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
public void recover(MessageRecoveryListener listener) throws Exception
- Throws:
Exception
-
recoverNextMessages
public void recoverNextMessages(int maxReturned, MessageRecoveryListener listener) throws Exception- Throws:
Exception
-
resetBatching
public void resetBatching()
-
setBatch
public void setBatch(org.apache.activemq.command.MessageId identity) throws IOException- Specified by:
setBatchin interfaceMessageStore- Overrides:
setBatchin classAbstractMessageStore- Throws:
IOException
-
setMemoryUsage
public void setMemoryUsage(MemoryUsage memoryUsage)
- Specified by:
setMemoryUsagein interfaceMessageStore- Overrides:
setMemoryUsagein classAbstractMessageStore
-
start
public void start() throws Exception- Specified by:
startin interfaceorg.apache.activemq.Service- Overrides:
startin classAbstractMessageStore- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceorg.apache.activemq.Service- Overrides:
stopin classAbstractMessageStore- Throws:
Exception
-
recoverMessageStoreStatistics
public void recoverMessageStoreStatistics() throws IOException- Overrides:
recoverMessageStoreStatisticsin classAbstractMessageStore- Throws:
IOException
-
-