|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DestinationCacheEventListener
A DestinationCacheEventListener responds to events generated by a
DestinationCache.
It gets notified when a message is added or removed 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(java.sql.Connection connection,
MessageImpl message)
This event is called when a persistent message is added to the DestinationCache. |
boolean |
persistentMessageRemoved(java.sql.Connection connection,
MessageImpl message)
This event is called when a message is removed from the DestinationCache. |
| Method Detail |
|---|
boolean messageAdded(MessageImpl message)
message - - message added to cacheboolean messageRemoved(MessageImpl message)
message - - message removed from cache
boolean persistentMessageAdded(java.sql.Connection connection,
MessageImpl message)
throws PersistenceException
connection - - the database connectionmessage - - message added to cache
PersistenceException - - if there is a persistence related problem
boolean persistentMessageRemoved(java.sql.Connection connection,
MessageImpl message)
throws PersistenceException
connection - - the database connectionmessage - - message to remove from cache
PersistenceException - - if there is a persistence related problem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||