|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageManagerEventListener
A MessageManagerEventListener responds to events generated by the
MessageMgr.
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 MessageMgr adds a message
for this destination to the cache |
void |
messageRemoved(JmsDestination destination,
MessageImpl message)
This method is called when the MessageMgr removes a
message from the cache. |
boolean |
persistentMessageAdded(java.sql.Connection connection,
JmsDestination destination,
MessageImpl message)
This event is called when the MessageMgr adds a persistent
message to the cache. |
void |
persistentMessageRemoved(java.sql.Connection connection,
JmsDestination destination,
MessageImpl message)
This event is called when the MessageMgr removes a persistent
message from the cache. |
| Method Detail |
|---|
boolean messageAdded(JmsDestination destination,
MessageImpl message)
MessageMgr adds a message
for this destination to the cache
destination - the message's destinationmessage - the message added to cache
true if this message was accepted
void messageRemoved(JmsDestination destination,
MessageImpl message)
MessageMgr removes a
message from the cache.
destination - the message's destinationmessage - message removed from cache
boolean persistentMessageAdded(java.sql.Connection connection,
JmsDestination destination,
MessageImpl message)
throws PersistenceException
MessageMgr adds a persistent
message to the cache.
connection - the database connectiondestination - the message's destinationmessage - message added to cache
trueThrows:
PersistenceException - if there is a persistence related problem
void persistentMessageRemoved(java.sql.Connection connection,
JmsDestination destination,
MessageImpl message)
throws PersistenceException
MessageMgr removes a persistent
message from the cache.
connection - the database connectionmessage - message to remove from cachedestination - the message's destination
PersistenceException - - if there is a persistence related problem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||