|
||||||||||
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 org.apache.activemq.service.MessageContainer
implementations
Method Summary | |
---|---|
void |
addMessage(ConnectionContext context,
Message message)
Adds a message to the message store |
void |
addMessageReference(ConnectionContext context,
MessageId messageId,
long expirationTime,
String messageRef)
Adds a message reference 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. |
String |
getMessageReference(MessageId identity)
Looks up a message using either the String messageID or the messageNumber. |
void |
recover(MessageRecoveryListener container)
Recover any messages to be delivered. |
void |
removeAllMessages(ConnectionContext context)
Removes all the messages from the message store. |
void |
removeMessage(ConnectionContext context,
MessageAck ack)
Removes a message from the message store. |
void |
setUsageManager(UsageManager usageManager)
|
Methods inherited from interface org.apache.activemq.Service |
---|
start, stop |
Method Detail |
---|
void addMessage(ConnectionContext context, Message message) throws IOException
context
- TODO
IOException
void addMessageReference(ConnectionContext context, MessageId messageId, long expirationTime, String messageRef) throws IOException
context
- TODOmessageId
- TODOexpirationTime
- TODO
IOException
Message getMessage(MessageId identity) throws IOException
identity
- which contains either the messageID or the messageNumber
IOException
String getMessageReference(MessageId identity) throws IOException
identity
- which contains either the messageID or the messageNumber
IOException
void removeMessage(ConnectionContext context, MessageAck ack) throws IOException
context
- TODOack
- 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
void removeAllMessages(ConnectionContext context) throws IOException
context
- TODO
IOException
void recover(MessageRecoveryListener container) throws Exception
container
-
Exception
ActiveMQDestination getDestination()
void setUsageManager(UsageManager usageManager)
usageManager
- The UsageManager that is controlling the destination's memory usage.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |