|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.store.ProxyMessageStore
A simple proxy that delegates to another MessageStore.
| Constructor Summary | |
ProxyMessageStore(MessageStore delegate)
|
|
| Method Summary | |
void |
addMessage(ActiveMQMessage message)
Adds a message to the message store |
MessageStore |
getDelegate()
|
ActiveMQMessage |
getMessage(MessageIdentity identity)
Looks up a message using either the String messageID or the messageNumber. |
void |
recover(RecoveryListener listener)
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. |
void |
start()
Called to start the service |
void |
stop()
Called to shutdown the service |
| 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(ActiveMQMessage message)
throws javax.jms.JMSException
MessageStore
addMessage in interface MessageStorejavax.jms.JMSException
public ActiveMQMessage getMessage(MessageIdentity identity)
throws javax.jms.JMSException
MessageStore
getMessage in interface MessageStoreidentity - which contains either the messageID or the messageNumber
javax.jms.JMSException
public void recover(RecoveryListener listener)
throws javax.jms.JMSException
MessageStore
recover in interface MessageStorelistener -
javax.jms.JMSException
public void removeAllMessages()
throws javax.jms.JMSException
MessageStore
removeAllMessages in interface MessageStorejavax.jms.JMSException
public void removeMessage(MessageAck ack)
throws javax.jms.JMSException
MessageStore
removeMessage in interface MessageStoreack - 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.
javax.jms.JMSException
public void start()
throws javax.jms.JMSException
Service
start in interface Servicejavax.jms.JMSException
public void stop()
throws javax.jms.JMSException
Service
stop in interface Servicejavax.jms.JMSException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||