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, MessageStore
- Enclosing class:
- KahaDBStore
public class KahaDBStore.KahaDBMessageStore
- extends AbstractMessageStore
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
asyncTaskMap
protected final Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask> asyncTaskMap
dest
protected KahaDestination dest
KahaDBStore.KahaDBMessageStore
public KahaDBStore.KahaDBMessageStore(org.apache.activemq.command.ActiveMQDestination destination)
getDestination
public org.apache.activemq.command.ActiveMQDestination getDestination()
- Specified by:
getDestination in interface MessageStore- Overrides:
getDestination in class AbstractMessageStore
asyncAddQueueMessage
public Future<Object> asyncAddQueueMessage(ConnectionContext context,
org.apache.activemq.command.Message message)
throws IOException
- Specified by:
asyncAddQueueMessage in interface MessageStore- Overrides:
asyncAddQueueMessage in class AbstractMessageStore
- Throws:
IOException
removeAsyncMessage
public void removeAsyncMessage(ConnectionContext context,
org.apache.activemq.command.MessageAck ack)
throws IOException
- Specified by:
removeAsyncMessage in interface MessageStore- Overrides:
removeAsyncMessage in class AbstractMessageStore
- Throws:
IOException
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
getMessageCount
public int getMessageCount()
throws IOException
- Throws:
IOException
isEmpty
public boolean isEmpty()
throws IOException
- Specified by:
isEmpty in interface MessageStore- Overrides:
isEmpty in class AbstractMessageStore
- 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:
setBatch in interface MessageStore- Overrides:
setBatch in class AbstractMessageStore
- Throws:
IOException
setMemoryUsage
public void setMemoryUsage(MemoryUsage memoeyUSage)
- Specified by:
setMemoryUsage in interface MessageStore- Overrides:
setMemoryUsage in class AbstractMessageStore
start
public void start()
throws Exception
- Specified by:
start in interface org.apache.activemq.Service- Overrides:
start in class AbstractMessageStore
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop in interface org.apache.activemq.Service- Overrides:
stop in class AbstractMessageStore
- Throws:
Exception
lockAsyncJobQueue
protected void lockAsyncJobQueue()
unlockAsyncJobQueue
protected void unlockAsyncJobQueue()
acquireLocalAsyncLock
protected void acquireLocalAsyncLock()
releaseLocalAsyncLock
protected void releaseLocalAsyncLock()
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.