com.caucho.env.meter
Class CountMeter

java.lang.Object
  extended by com.caucho.env.meter.AbstractMeter
      extended by com.caucho.env.meter.CountMeter
All Implemented Interfaces:
CountSensor, Meter

public final class CountMeter
extends AbstractMeter
implements CountSensor


Constructor Summary
CountMeter(java.lang.String name)
           
 
Method Summary
 void addListener(CountSensor sensor)
          Listeners
 void removeListener(CountSensor sensor)
           
 double sample()
          Sample the total count
 void start()
           
 
Methods inherited from class com.caucho.env.meter.AbstractMeter
getName, peek, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountMeter

public CountMeter(java.lang.String name)
Method Detail

start

public final void start()
Specified by:
start in interface CountSensor

sample

public final double sample()
Sample the total count

Specified by:
sample in interface Meter
Specified by:
sample in class AbstractMeter

addListener

public void addListener(CountSensor sensor)
Listeners


removeListener

public void removeListener(CountSensor sensor)