org.hornetq.spi.core.remoting
Interface ConnectionLifeCycleListener


public interface ConnectionLifeCycleListener

A ConnectionLifeCycleListener is called by the remoting implementation to notify of connection events.

Author:
Tim Fox

Method Summary
 void connectionCreated(Connection connection, ProtocolType protocol)
          called when a connection is created.
 void connectionDestroyed(Object connectionID)
          called when a connection is destroyed.
 void connectionException(Object connectionID, HornetQException me)
          called when an error occurs on the connection.
 

Method Detail

connectionCreated

void connectionCreated(Connection connection,
                       ProtocolType protocol)
called when a connection is created.

Parameters:
connection - the connection that has been created

connectionDestroyed

void connectionDestroyed(Object connectionID)
called when a connection is destroyed.

Parameters:
connectionID - the connection being destroyed.

connectionException

void connectionException(Object connectionID,
                         HornetQException me)
called when an error occurs on the connection.

Parameters:
connectionID - the id of the connection.
me - the exception.


Copyright © 2009 Red Hat Inc. All Rights Reserved.