|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.util.counters.impl.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 Counterpublic String getName()
Counter
getName in interface Counterpublic abstract double increment()
Counter
increment in interface Counterpublic abstract double incrementBy(double value)
Counter
incrementBy in interface Countervalue - the amount to increment the counter by
public abstract double decrement()
Counter
decrement in interface Counterpublic abstract void setRawValue(double value)
Counter
setRawValue in interface Countervalue - the new value of the counterpublic abstract double nextValue()
Counter
nextValue in interface Counterprotected void addAggregate(AggregateCounter counter)
protected void propagate()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||