1 /** 2 * 3 */ 4 package org.sourceforge.jemmrpc.server; 5 6 /** 7 * An interface to allow a server to listen to client disconnection events. 8 * 9 * @author Rory Graves 10 * 11 */ 12 public interface ClientConnectionListener 13 { 14 /** 15 * Notification that a new client has just started. 16 * 17 * @param clientId The id of the new client. 18 * @param clientHostname The hostname of the new client. 19 * @param clientPort The port of the new client. 20 */ 21 void clientConnected(ClientId clientId, String clientHostname, int clientPort); 22 23 /** 24 * Notification that the client with the given clientId has disconnected. 25 * 26 * @param clientId The id of the disconnected client. 27 */ 28 void clientDisconnected(ClientId clientId); 29 }