|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A MessageListener responds to events generated by the MessageManager
Currently it gets notified when a message is added or removed for a
particular destination.
Additionally, the message listener is scoped so that it only receives
messages for a particular #Destination
| Method Summary | |
boolean |
messageAdded(JmsDestination destination,
MessageImpl message)
This method is called when the #MessageManager adds a message
for this destination to the cache |
void |
messageRemoved(JmsDestination destination,
MessageImpl message)
This method is called when the #MessageManager removes a
message from the cache. |
boolean |
persistentMessageAdded(JmsDestination destination,
MessageImpl message)
This event is called when the MessageMgr adds a persistent
message to the cache. |
void |
persistentMessageRemoved(JmsDestination destination,
MessageImpl message)
This event is called when a message is removed from the DestinationCache. |
| Method Detail |
public boolean messageAdded(JmsDestination destination,
MessageImpl message)
#MessageManager adds a message
for this destination to the cachedestination - - the message's destinationmessage - - message added to cache
public void messageRemoved(JmsDestination destination,
MessageImpl message)
#MessageManager removes a
message from the cache.destination - - the message's destinationmessage - - message removed from cache
public boolean persistentMessageAdded(JmsDestination destination,
MessageImpl message)
throws PersistenceException
MessageMgr adds a persistent
message to the cache.destination - - the message's destinationmessage - - message added to cachePersistenceException - - if there is a persistence related problem
public void persistentMessageRemoved(JmsDestination destination,
MessageImpl message)
throws PersistenceException
message - - message to remove from cachedestination - - the message's destinationPersistenceException - - if there is a persistence related problem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||