org.exolab.jms.net.connector
Interface ManagedConnectionListener


public interface ManagedConnectionListener

A listener for ManagedConnection events.

Version:
$Revision: 1.3 $ $Date: 2006/12/16 12:37:17 $
Author:
Tim Anderson

Method Summary
 void closed(ManagedConnection source)
          Notifies closure of a connection.
 void error(ManagedConnection source, java.lang.Throwable throwable)
          Notifies a connection related error.
 void pinged(ManagedConnection source)
          Notifies of a successful ping.
 

Method Detail

closed

public void closed(ManagedConnection source)
Notifies closure of a connection. The ManagedConnection instance invokes this to notify its registered listeners when the peer closes the connection.
Parameters:
source - the managed connection that is the source of the event

error

public void error(ManagedConnection source,
                  java.lang.Throwable throwable)
Notifies a connection related error. The ManagedConnection instance invokes this to notify its registered listeners of the occurrence of a physical connection-related error.
Parameters:
source - the managed connection that is the source of the event
throwable - the error

pinged

public void pinged(ManagedConnection source)
Notifies of a successful ping.
Parameters:
source - the managed connection that is the source of the event


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