abstract class MonitoredNumeric<T extends java.lang.Number> extends MonitoredValue<T>
Monitorable which deals with numeric values.
Provides convenience methods to increment and decrement the current value by
one unit.valueLOG| Constructor and Description |
|---|
MonitoredNumeric(java.lang.String name,
java.lang.String description,
MonitorableRegistry registry,
T initialValue,
javax.measure.Unit<?> unit) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
dec()
Decrements the current value by 1.
|
abstract void |
dec(int delta)
Decrements the current value by the specified amount.
|
abstract void |
inc()
Increments the current value by 1.
|
abstract void |
inc(int delta)
Increments the current value by the specified amount.
|
get, setattachMonitor, getDescription, getName, getSemantics, getType, getUnit, isAttached, logValue, notifyMonitors, registerSelf, removeMonitorpublic MonitoredNumeric(java.lang.String name,
java.lang.String description,
MonitorableRegistry registry,
T initialValue,
javax.measure.Unit<?> unit)
public abstract void inc()
public abstract void inc(int delta)
public abstract void dec()
public abstract void dec(int delta)