1 /*2 * This software is released under a licence similar to the Apache Software Licence.3 * See org.logicalcobwebs.proxool.package.html for details.4 * The latest version is available at http://proxool.sourceforge.net5 */6 package org.logicalcobwebs.proxool;7 8 /**9 * Monitors the state of the pool so you can see whether it is10 * quiet, busy, overloaded, or down.11 *12 * <pre>13 * String alias = "myPool";14 * StateListenerIF myStateListener = new MyStateListener();15 * ProxoolFacade.{@link ProxoolFacade#addStateListener addStateListenerIF}(alias, myStateListener);16 * </pre>17 *18 * @version $Revision: 1.5 $, $Date: 2003/03/03 11:11:58 $19 * @author billhorsman20 * @author $Author: billhorsman $ (current maintainer)21 */22 public interface StateListenerIF {23 24 public final int STATE_QUIET = 0;25 26 public final int STATE_BUSY = 1;27 28 public final int STATE_OVERLOADED = 2;29 30 public final int STATE_DOWN = 3;31 32 void upStateChanged(int upState);33 }34 35 /*36 Revision history:37 $Log: StateListenerIF.java,v $38 Revision 1.5 2003/03/03 11:11:58 billhorsman39 fixed licence40 41 Revision 1.4 2003/02/08 00:35:30 billhorsman42 doc43 44 Revision 1.3 2002/12/15 19:21:42 chr3245 Changed @linkplain to @link (to preserve JavaDoc for 1.2/1.3 users).46 47 Revision 1.2 2002/10/25 16:00:27 billhorsman48 added better class javadoc49 50 Revision 1.1.1.1 2002/09/13 08:13:30 billhorsman51 new52 53 Revision 1.5 2002/07/10 16:14:47 billhorsman54 widespread layout changes and move constants into ProxoolConstants55 56 Revision 1.4 2002/06/28 11:19:47 billhorsman57 improved doc58 59 Revision 1.3 2002/06/28 11:15:41 billhorsman60 didn't really need ListenerIF61 62 */63