|
|||||||||
| 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(MessageImpl message)
This event is called when a non-persistent message is added to the DestinationCache. |
boolean |
messageRemoved(MessageImpl message)
This event is called when a message is removed from the DestinationCache. |
boolean |
persistentMessageAdded(MessageImpl message)
This event is called when a persistent message is added to the DestinationCache. |
boolean |
persistentMessageRemoved(MessageImpl message)
This event is called when a message is removed from the DestinationCache. |
| Method Detail |
public boolean messageAdded(MessageImpl message)
message - - message added to cachepublic boolean messageRemoved(MessageImpl message)
message - - message removed from cache
public boolean persistentMessageAdded(MessageImpl message)
throws PersistenceException
connection - - the database connectionmessage - - message added to cachePersistenceException - - if there is a persistence related problem
public boolean persistentMessageRemoved(MessageImpl message)
throws PersistenceException
connection - - the database connectionmessage - - message to remove from cachePersistenceException - - if there is a persistence related problem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||