org.jboss.remoting
Interface ConnectionListener

All Known Implementing Classes:
ServerInvokerCallbackHandler

public interface ConnectionListener

Listener that can be registered with the Client to receive a callback if the target server for said Client is determined to be unreachable at any point.

Can also be registered with Connector to be notified when client disconnects (but only when leasing is turned on).

Author:
Tom Elrod

Method Summary
 void handleConnectionException(java.lang.Throwable throwable, Client client)
          Called when a target server or client found to be dead.
 

Method Detail

handleConnectionException

void handleConnectionException(java.lang.Throwable throwable,
                               Client client)
Called when a target server or client found to be dead.

Parameters:
throwable - - original exception thrown when trying to connect to target server. If is listener on server for client failure, the exception will be a ClientDisconnectedException if the client disconnected normally, or null if the lease expired.
client - - the client from which this call was made.


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.