1 /* 2 * JBoss, the OpenSource J2EE webOS 3 * 4 * Distributable under LGPL license. 5 * See terms of license at gnu.org. 6 */ 7 package org.jboss.remoting; 8 9 /** 10 * Listener that can be registered with the Client to receive a 11 * callback if the target server for said Client is determined to 12 * be unreachable at any point. 13 * 14 * @author <a HREF="mailto:tom.elrod@jboss.com">Tom Elrod</a> 15 */ 16 public interface ConnectionListener 17 { 18 /** 19 * Called when a target server if found to be dead. 20 * 21 * @param throwable original exception thrown when trying to connect to target server. 22 * @param client the client from which this call was made. 23 */ 24 public void handlerConnectionException(Throwable throwable, Client client); 25 }