org.exolab.jms.messagemgr
Interface MessageManagerEventListener

All Known Subinterfaces:
DestinationCache, DestinationManager
All Known Implementing Classes:
AbstractDestinationCache, DestinationManagerImpl, QueueDestinationCache

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.

Version:
$Revision: 1.3 $ $Date: 2005/08/30 07:26:49 $
Author:
Jim Alateras, Tim Anderson

Method Summary
 void messageAdded(JmsDestination destination, MessageImpl message)
          Invoked when the MessageManager receives a non-persistent message.
 void persistentMessageAdded(JmsDestination destination, MessageImpl message)
          Invoked when the MessageManager receives a persistent message.
 

Method Detail

messageAdded

void messageAdded(JmsDestination destination,
                  MessageImpl message)
                  throws javax.jms.JMSException
Invoked when the MessageManager receives a non-persistent message.

Parameters:
destination - the message's destination
message - the message
Throws:
javax.jms.JMSException - if the listener fails to handle the message

persistentMessageAdded

void persistentMessageAdded(JmsDestination destination,
                            MessageImpl message)
                            throws javax.jms.JMSException,
                                   PersistenceException
Invoked when the MessageManager receives a persistent message.

Parameters:
destination - the message's destination
message - the message
Throws:
javax.jms.JMSException - if the listener fails to handle the message
PersistenceException - if there is a persistence related problem


Copyright © 1999-2012 The OpenJMS Group. All Rights Reserved.