Class Average

  extended by org.mule.util.counters.impl.AbstractCounter
      extended by org.mule.util.counters.impl.AggregateCounter
          extended by org.mule.util.counters.impl.Average
All Implemented Interfaces:
NamedObject, Counter

public class Average
extends AggregateCounter

Constructor Summary
Average(String name, AbstractCounter base)
Method Summary
 void doCompute()
 double nextValue()
          Compute and return the value of the counter.
Methods inherited from class org.mule.util.counters.impl.AggregateCounter
compute, decrement, getBase, increment, incrementBy, setRawValue
Methods inherited from class org.mule.util.counters.impl.AbstractCounter
addAggregate, getName, getType, propagate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Average(String name,
               AbstractCounter base)
Method Detail


public double nextValue()
Description copied from interface: Counter
Compute and return the value of the counter.

Specified by:
nextValue in interface Counter
Specified by:
nextValue in class AggregateCounter
the value of the counter


public void doCompute()
Specified by:
doCompute in class AggregateCounter

Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.