|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.store.ProxyMessageStore
public class ProxyMessageStore
A simple proxy that delegates to another MessageStore.
| Constructor Summary | |
|---|---|
ProxyMessageStore(MessageStore delegate)
|
|
| Method Summary | |
|---|---|
void |
addMessage(ConnectionContext context,
Message message)
Adds a message to the message store |
void |
addMessageReference(ConnectionContext context,
MessageId messageId,
long expirationTime,
java.lang.String messageRef)
Adds a message reference to the message store |
MessageStore |
getDelegate()
|
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. |
java.lang.String |
getMessageReference(MessageId identity)
Looks up a message using either the String messageID or the messageNumber. |
void |
recover(MessageRecoveryListener listener)
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)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyMessageStore(MessageStore delegate)
| Method Detail |
|---|
public MessageStore getDelegate()
public void addMessage(ConnectionContext context,
Message message)
throws java.io.IOException
MessageStore
addMessage in interface MessageStorecontext - TODO
java.io.IOException
public Message getMessage(MessageId identity)
throws java.io.IOException
MessageStore
getMessage in interface MessageStoreidentity - which contains either the messageID or the messageNumber
java.io.IOException
public void recover(MessageRecoveryListener listener)
throws java.lang.Exception
MessageStore
recover in interface MessageStorejava.lang.Exception
public void removeAllMessages(ConnectionContext context)
throws java.io.IOException
MessageStore
removeAllMessages in interface MessageStorecontext - TODO
java.io.IOException
public void removeMessage(ConnectionContext context,
MessageAck ack)
throws java.io.IOException
MessageStore
removeMessage in interface MessageStorecontext - 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.
java.io.IOException
public void start()
throws java.lang.Exception
start in interface Servicejava.lang.Exception
public void stop()
throws java.lang.Exception
stop in interface Servicejava.lang.Exceptionpublic ActiveMQDestination getDestination()
MessageStore
getDestination in interface MessageStore
public void addMessageReference(ConnectionContext context,
MessageId messageId,
long expirationTime,
java.lang.String messageRef)
throws java.io.IOException
MessageStore
addMessageReference in interface MessageStorecontext - TODOmessageId - TODOexpirationTime - TODO
java.io.IOException
public java.lang.String getMessageReference(MessageId identity)
throws java.io.IOException
MessageStore
getMessageReference in interface MessageStoreidentity - which contains either the messageID or the messageNumber
java.io.IOExceptionpublic void setUsageManager(UsageManager usageManager)
setUsageManager in interface MessageStoreusageManager - 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 | |||||||||