public abstract class AggregateCounter extends AbstractCounter
| Constructor and Description |
|---|
AggregateCounter(String name,
CounterFactory.Type type,
AbstractCounter base) |
| Modifier and Type | Method and Description |
|---|---|
void |
compute() |
double |
decrement()
Decrement the counter's value by 1.0.
|
abstract void |
doCompute() |
Counter |
getBase() |
double |
increment()
Increment the counter's value by 1.0.
|
double |
incrementBy(double value)
Increment the counter's value by the specified amount.
|
abstract double |
nextValue()
Compute and return the value of the counter.
|
void |
setRawValue(double value)
Set the counter's value to a new value.
|
addAggregate, getName, getType, propagatepublic AggregateCounter(String name, CounterFactory.Type type, AbstractCounter base)
public double increment()
Counterincrement in interface Counterincrement in class AbstractCounterpublic double incrementBy(double value)
CounterincrementBy in interface CounterincrementBy in class AbstractCountervalue - the amount to increment the counter bypublic double decrement()
Counterdecrement in interface Counterdecrement in class AbstractCounterpublic void setRawValue(double value)
CountersetRawValue in interface CountersetRawValue in class AbstractCountervalue - the new value of the counterpublic final void compute()
public Counter getBase()
public abstract double nextValue()
CounternextValue in interface CounternextValue in class AbstractCounterpublic abstract void doCompute()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.