abstract class SettableValue<T> extends AbstractMonitorable<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
value |
LOG| Modifier | Constructor and Description |
|---|---|
protected |
SettableValue(java.lang.String name,
java.lang.String description,
MonitorableRegistry registry,
T initialValue,
javax.measure.Unit<?> unit,
ValueSemantics semantics) |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
This method should never block and must return as quickly as possible.
|
void |
set(T newValue)
Sets the current value of this Monitorable.
|
attachMonitor, getDescription, getName, getSemantics, getType, getUnit, isAttached, logValue, notifyMonitors, registerSelf, removeMonitorprotected volatile T value
protected SettableValue(java.lang.String name,
java.lang.String description,
MonitorableRegistry registry,
T initialValue,
javax.measure.Unit<?> unit,
ValueSemantics semantics)
public T get()
Monitorablepublic void set(T newValue)