public class KahaDBStore.KahaDBMessageStore extends AbstractMessageStore
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask> |
asyncTaskMap |
protected KahaDestination |
dest |
destination, FUTURE, indexListener, prioritizedMessages| Constructor and Description |
|---|
KahaDBStore.KahaDBMessageStore(ActiveMQDestination destination) |
addMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getIndexListener, isPrioritizedMessages, registerIndexListener, setPrioritizedMessagesprotected final java.util.Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask> asyncTaskMap
protected KahaDestination dest
public KahaDBStore.KahaDBMessageStore(ActiveMQDestination destination)
public ActiveMQDestination getDestination()
getDestination in interface MessageStoregetDestination in class AbstractMessageStorepublic ListenableFuture<java.lang.Object> asyncAddQueueMessage(ConnectionContext context, Message message) throws java.io.IOException
asyncAddQueueMessage in interface MessageStoreasyncAddQueueMessage in class AbstractMessageStorejava.io.IOExceptionpublic void removeAsyncMessage(ConnectionContext context, MessageAck ack) throws java.io.IOException
removeAsyncMessage in interface MessageStoreremoveAsyncMessage in class AbstractMessageStorejava.io.IOExceptionpublic void addMessage(ConnectionContext context, Message message) throws java.io.IOException
java.io.IOExceptionpublic void updateMessage(Message message) throws java.io.IOException
updateMessage in interface MessageStoreupdateMessage in class AbstractMessageStorejava.io.IOExceptionpublic void removeMessage(ConnectionContext context, MessageAck ack) throws java.io.IOException
java.io.IOExceptionpublic void removeAllMessages(ConnectionContext context) throws java.io.IOException
java.io.IOExceptionpublic Message getMessage(MessageId identity) throws java.io.IOException
java.io.IOExceptionpublic int getMessageCount()
throws java.io.IOException
java.io.IOExceptionpublic boolean isEmpty()
throws java.io.IOException
isEmpty in interface MessageStoreisEmpty in class AbstractMessageStorejava.io.IOExceptionpublic void recover(MessageRecoveryListener listener) throws java.lang.Exception
java.lang.Exceptionpublic void recoverNextMessages(int maxReturned,
MessageRecoveryListener listener)
throws java.lang.Exception
java.lang.Exceptionprotected int recoverRolledBackAcks(org.apache.activemq.store.kahadb.MessageDatabase.StoredDestination sd, Transaction tx, int maxReturned, MessageRecoveryListener listener) throws java.lang.Exception
java.lang.Exceptionpublic void resetBatching()
public void setBatch(MessageId identity) throws java.io.IOException
setBatch in interface MessageStoresetBatch in class AbstractMessageStorejava.io.IOExceptionpublic void setMemoryUsage(MemoryUsage memoryUsage)
setMemoryUsage in interface MessageStoresetMemoryUsage in class AbstractMessageStorepublic void start()
throws java.lang.Exception
start in interface Servicestart in class AbstractMessageStorejava.lang.Exceptionpublic void stop()
throws java.lang.Exception
stop in interface Servicestop in class AbstractMessageStorejava.lang.Exceptionprotected void lockAsyncJobQueue()
protected void unlockAsyncJobQueue()
protected void acquireLocalAsyncLock()
protected void releaseLocalAsyncLock()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.