jrun.jms.core.messagemgr
Interface DestinationCacheEventListener

All Known Implementing Classes:
ConsumerEndpoint, ConsumerManager

public interface DestinationCacheEventListener

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

Version:
$Revision: 1.2 $ $Date: 2001/09/03 23:43:18 $
Author:
Jim Alateras

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

messageAdded

public boolean messageAdded(MessageImpl message)
This event is called when a non-persistent message is added to the DestinationCache.
Parameters:
message - - message added to cache

messageRemoved

public boolean messageRemoved(MessageImpl message)
This event is called when a message is removed from the DestinationCache.
Parameters:
message - - message removed from cache

persistentMessageAdded

public boolean persistentMessageAdded(MessageImpl message)
                               throws PersistenceException
This event is called when a persistent message is added to the DestinationCache.
Parameters:
connection - - the database connection
message - - message added to cache
Throws:
PersistenceException - - if there is a persistence related problem

persistentMessageRemoved

public boolean persistentMessageRemoved(MessageImpl message)
                                 throws PersistenceException
This event is called when a message is removed from the DestinationCache.
Parameters:
connection - - the database connection
message - - message to remove from cache
Throws:
PersistenceException - - if there is a persistence related problem


Copyright � 2002 Macromedia Corporation. All Rights Reserved.