public class TempKahaDBStore.KahaDBMessageStore extends AbstractMessageStore
| Modifier and Type | Field and Description |
|---|---|
protected KahaDestination |
dest |
destination, FUTURE, indexListener, prioritizedMessages| Constructor and Description |
|---|
TempKahaDBStore.KahaDBMessageStore(ActiveMQDestination destination) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(ConnectionContext context,
Message message) |
ActiveMQDestination |
getDestination() |
Message |
getMessage(MessageId identity) |
int |
getMessageCount() |
void |
recover(MessageRecoveryListener listener) |
void |
recoverNextMessages(int maxReturned,
MessageRecoveryListener listener) |
void |
removeAllMessages(ConnectionContext context) |
void |
removeMessage(ConnectionContext context,
MessageAck ack) |
void |
resetBatching() |
void |
setBatch(MessageId identity) |
void |
setMemoryUsage(MemoryUsage memoryUsage) |
void |
start() |
void |
stop() |
addMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getIndexListener, isEmpty, isPrioritizedMessages, registerIndexListener, removeAsyncMessage, setPrioritizedMessages, updateMessageprotected KahaDestination dest
public TempKahaDBStore.KahaDBMessageStore(ActiveMQDestination destination)
public ActiveMQDestination getDestination()
getDestination in interface MessageStoregetDestination in class AbstractMessageStorepublic void addMessage(ConnectionContext context, Message message) throws java.io.IOException
java.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 void recover(MessageRecoveryListener listener) throws java.lang.Exception
java.lang.Exceptionpublic void recoverNextMessages(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.ExceptionCopyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.