|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageStore
Represents a message store which is used by the persistent MessageContainer
implementations
Method Summary | |
---|---|
void |
addMessage(ActiveMQMessage message)
Adds a message to the message store |
ActiveMQMessage |
getMessage(MessageIdentity identity)
Looks up a message using either the String messageID or the messageNumber. |
void |
recover(RecoveryListener container)
Recover any messages to be delivered. |
void |
removeAllMessages()
Removes all the messages from the message store. |
void |
removeMessage(MessageAck ack)
Removes a message from the message store. |
Methods inherited from interface org.activemq.service.Service |
---|
start, stop |
Method Detail |
---|
void addMessage(ActiveMQMessage message) throws JMSException
JMSException
ActiveMQMessage getMessage(MessageIdentity identity) throws JMSException
identity
- which contains either the messageID or the messageNumber
JMSException
void removeMessage(MessageAck ack) throws JMSException
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.
JMSException
void removeAllMessages() throws JMSException
JMSException
void recover(RecoveryListener container) throws JMSException
container
-
JMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |