package fr.dgac.ivy; /** * this interface specifies the methods of an ApplicationListener * * @author François-Régis Colin * @author Yannick Jestin * @author http://www.tls.cena.fr/products/ivy/ * * The ApplicatinListenr for receiving application level events on the Ivy * bus: connexion, disconnexion, direct messages or requests to quit. * * Changelog: * 1.2.4 * - sendDie now requires a String argument ! It is MANDATORY, and could * impact your implementations ! */ public interface IvyApplicationListener extends java.util.EventListener { /** * invoked when a Ivy Client has joined the bus * @param client the peer */ public abstract void connect(IvyClient client); /** * invoked when a Ivy Client has left the bus * @param client the peer */ public abstract void disconnect(IvyClient client); /** * invoked when a peer request us to leave the bus * @param client the peer */ public abstract void die(IvyClient client, int id,String msgarg); /** * invoked when a peer sends us a direct message * @param client the peer * @param id * @param msgarg the message itself */ public abstract void directMessage( IvyClient client, int id,String msgarg ); }