org.logicalcobwebs.proxool
Class CompositeStateListener

java.lang.Object
  extended by org.logicalcobwebs.proxool.util.AbstractListenerContainer
      extended by org.logicalcobwebs.proxool.CompositeStateListener
All Implemented Interfaces:
StateListenerIF, org.logicalcobwebs.proxool.util.ListenerContainerIF

public class CompositeStateListener
extends org.logicalcobwebs.proxool.util.AbstractListenerContainer
implements StateListenerIF

A StateListenerIF that keeps a list of StateListenerIFs and notifies them in a thread safe manner. It also implements ListenerContainerIF which provides methods for adding and removing listeners.

Since:
Proxool 0.7
Version:
$Revision: 1.5 $, $Date: 2004/03/16 08:48:32 $
Author:
Christian Nedregaard (christian_nedregaard@email.com), $Author: brenuart $ (current maintainer)

Field Summary
 
Fields inherited from interface org.logicalcobwebs.proxool.StateListenerIF
STATE_BUSY, STATE_DOWN, STATE_OVERLOADED, STATE_QUIET
 
Constructor Summary
CompositeStateListener()
           
 
Method Summary
 void upStateChanged(int upState)
           
 
Methods inherited from class org.logicalcobwebs.proxool.util.AbstractListenerContainer
addListener, isEmpty, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeStateListener

public CompositeStateListener()
Method Detail

upStateChanged

public void upStateChanged(int upState)
Specified by:
upStateChanged in interface StateListenerIF
See Also:
StateListenerIF.upStateChanged(int)