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