|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.store.AbstractMessageStore
org.apache.activemq.store.kahadb.KahaDBStore.KahaDBMessageStore
public class KahaDBStore.KahaDBMessageStore
| Field Summary | |
|---|---|
protected Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask> |
asyncTaskMap
|
protected KahaDestination |
dest
|
| Fields inherited from class org.apache.activemq.store.AbstractMessageStore |
|---|
destination, FUTURE, prioritizedMessages |
| Constructor Summary | |
|---|---|
KahaDBStore.KahaDBMessageStore(ActiveMQDestination destination)
|
|
| Method Summary | |
|---|---|
protected void |
acquireLocalAsyncLock()
|
void |
addMessage(ConnectionContext context,
Message message)
Adds a message to the message store |
Future<Object> |
asyncAddQueueMessage(ConnectionContext context,
Message message)
Adds a message to the message store |
ActiveMQDestination |
getDestination()
The destination that the message store is holding messages for. |
Message |
getMessage(MessageId identity)
Looks up a message using either the String messageID or the messageNumber. |
int |
getMessageCount()
|
boolean |
isEmpty()
flag to indicate if the store is empty |
protected void |
lockAsyncJobQueue()
|
void |
recover(MessageRecoveryListener listener)
Recover any messages to be delivered. |
void |
recoverNextMessages(int maxReturned,
MessageRecoveryListener listener)
|
protected void |
releaseLocalAsyncLock()
|
void |
removeAllMessages(ConnectionContext context)
Removes all the messages from the message store. |
void |
removeAsyncMessage(ConnectionContext context,
MessageAck ack)
|
void |
removeMessage(ConnectionContext context,
MessageAck ack)
Removes a message from the message store. |
void |
resetBatching()
A hint to the Store to reset any batching state for the Destination |
void |
setBatch(MessageId identity)
allow caching cursors to set the current batch offset when cache is exhausted |
void |
setMemoryUsage(MemoryUsage memoeyUSage)
|
void |
start()
|
void |
stop()
|
protected void |
unlockAsyncJobQueue()
|
| Methods inherited from class org.apache.activemq.store.AbstractMessageStore |
|---|
addMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, isPrioritizedMessages, setPrioritizedMessages |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask> asyncTaskMap
protected KahaDestination dest
| Constructor Detail |
|---|
public KahaDBStore.KahaDBMessageStore(ActiveMQDestination destination)
| Method Detail |
|---|
public ActiveMQDestination getDestination()
MessageStore
getDestination in interface MessageStoregetDestination in class AbstractMessageStore
public Future<Object> asyncAddQueueMessage(ConnectionContext context,
Message message)
throws IOException
MessageStore
asyncAddQueueMessage in interface MessageStoreasyncAddQueueMessage in class AbstractMessageStorecontext - context
IOException
public void removeAsyncMessage(ConnectionContext context,
MessageAck ack)
throws IOException
removeAsyncMessage in interface MessageStoreremoveAsyncMessage in class AbstractMessageStoreIOException
public void addMessage(ConnectionContext context,
Message message)
throws IOException
MessageStore
context - context
IOException
public void removeMessage(ConnectionContext context,
MessageAck ack)
throws IOException
MessageStore
ack - the ack request that cause the message to be removed. It
conatins the identity which contains the messageID of the
message that needs to be removed.
IOException
public void removeAllMessages(ConnectionContext context)
throws IOException
MessageStore
IOException
public Message getMessage(MessageId identity)
throws IOException
MessageStore
identity - which contains either the messageID or the messageNumber
IOException
public int getMessageCount()
throws IOException
IOException
public boolean isEmpty()
throws IOException
AbstractMessageStore
isEmpty in interface MessageStoreisEmpty in class AbstractMessageStoreIOException
public void recover(MessageRecoveryListener listener)
throws Exception
MessageStore
Exception
public void recoverNextMessages(int maxReturned,
MessageRecoveryListener listener)
throws Exception
Exceptionpublic void resetBatching()
MessageStore
public void setBatch(MessageId identity)
throws IOException
MessageStore
setBatch in interface MessageStoresetBatch in class AbstractMessageStoreIOExceptionpublic void setMemoryUsage(MemoryUsage memoeyUSage)
setMemoryUsage in interface MessageStoresetMemoryUsage in class AbstractMessageStorememoeyUSage - The SystemUsage that is controlling the
destination's memory usage.
public void start()
throws Exception
start in interface Servicestart in class AbstractMessageStoreException
public void stop()
throws Exception
stop in interface Servicestop in class AbstractMessageStoreExceptionprotected void lockAsyncJobQueue()
protected void unlockAsyncJobQueue()
protected void acquireLocalAsyncLock()
protected void releaseLocalAsyncLock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||