|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.util.counters.impl.AbstractCounter
public abstract class AbstractCounter
Constructor Summary | |
---|---|
AbstractCounter(String name,
CounterFactory.Type type)
|
Method Summary | |
---|---|
protected void |
addAggregate(AggregateCounter counter)
|
abstract double |
decrement()
Decrement the counter's value by 1.0. |
String |
getName()
Accessor for the counter's name. |
CounterFactory.Type |
getType()
Accessor for the counter type. |
abstract double |
increment()
Increment the counter's value by 1.0. |
abstract double |
incrementBy(double value)
Increment the counter's value by the specified amount. |
abstract double |
nextValue()
Compute and return the value of the counter. |
protected void |
propagate()
|
abstract void |
setRawValue(double value)
Set the counter's value to a new value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCounter(String name, CounterFactory.Type type)
Method Detail |
---|
public CounterFactory.Type getType()
Counter
getType
in interface Counter
public String getName()
Counter
getName
in interface Counter
public abstract double increment()
Counter
increment
in interface Counter
public abstract double incrementBy(double value)
Counter
incrementBy
in interface Counter
value
- the amount to increment the counter by
public abstract double decrement()
Counter
decrement
in interface Counter
public abstract void setRawValue(double value)
Counter
setRawValue
in interface Counter
value
- the new value of the counterpublic abstract double nextValue()
Counter
nextValue
in interface Counter
protected void addAggregate(AggregateCounter counter)
protected void propagate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |