|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public boolean messageAdded(JmsDestination destination, MessageImpl message)
MessageMgr
adds a message
for this destination to the cachedestination
- the message's destinationmessage
- the message added to cachetrue
if this message was acceptedpublic void messageRemoved(JmsDestination destination, MessageImpl message)
MessageMgr
removes a
message from the cache.destination
- the message's destinationmessage
- message removed from cachepublic 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 cachetrue
Throws:PersistenceException
- if there is a persistence related problempublic 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 destinationPersistenceException
- - if there is a persistence related problem
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |