org.exolab.jms.net.connector
Class MulticastCallerListener

java.lang.Object
  |
  +--org.exolab.jms.net.connector.MulticastCallerListener
All Implemented Interfaces:
CallerListener

public class MulticastCallerListener
extends java.lang.Object
implements CallerListener

A listener for Caller events, which asynchronously propagates events to one or more registered listeners.

Version:
$Revision: 1.2 $ $Date: 2005/05/27 13:58:00 $
Author:
Tim Anderson

Constructor Summary
MulticastCallerListener()
           
 
Method Summary
 void addCallerListener(java.lang.String uri, CallerListener listener)
          Registers an event listener for caller events.
 void disconnected(Caller caller)
          Notifies that a connection has been disconnected.
 void removeCallerListener(java.lang.String uri, CallerListener listener)
          Removes an event listener for caller events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MulticastCallerListener

public MulticastCallerListener()
Method Detail

addCallerListener

public void addCallerListener(java.lang.String uri,
                              CallerListener listener)
                       throws InvalidURIException
Registers an event listener for caller events.
Parameters:
uri - the remote URI to listen for events on
listener - the event listener
Throws:
InvalidURIException - if uri is invalid

removeCallerListener

public void removeCallerListener(java.lang.String uri,
                                 CallerListener listener)
                          throws InvalidURIException
Removes an event listener for caller events.
Parameters:
uri - the remote URI to remove the listener for
listener - the event listener to remove
Throws:
InvalidURIException - if uri is invalid

disconnected

public void disconnected(Caller caller)
Notifies that a connection has been disconnected.
Specified by:
disconnected in interface CallerListener
Parameters:
caller - the caller that was disconnected


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