public class MonitoredIntValue extends MonitoredValue<T>
Monitorable
implementation for a free-running Integer value.Modifier and Type | Field and Description |
---|---|
protected T |
value |
LOG
Constructor and Description |
---|
MonitoredIntValue(String name,
String description,
Integer initialValue) |
MonitoredIntValue(String name,
String description,
MonitorableRegistry registry,
Integer initialValue) |
MonitoredIntValue(String name,
String description,
MonitorableRegistry registry,
Integer initialValue,
javax.measure.Unit<?> unit) |
Modifier and Type | Method and Description |
---|---|
void |
dec()
Convenience method to decrement atomic numeric types.
|
void |
dec(int delta)
Decrements the current value by the specified amount.
|
T |
get()
This method should never block and must return as quickly as possible.
|
void |
inc()
Convenience method to increment atomic numeric types.
|
void |
inc(int delta)
Increments the current value by the specified amount.
|
void |
set(T newValue)
Sets the current value of this Monitorable.
|
attachMonitor, getDescription, getName, getSemantics, getType, getUnit, logValue, notifyMonitors, registerSelf, removeMonitor
public MonitoredIntValue(String name, String description, MonitorableRegistry registry, Integer initialValue)
public MonitoredIntValue(String name, String description, MonitorableRegistry registry, Integer initialValue, javax.measure.Unit<?> unit)
public void inc()
public void inc(int delta)
public void dec()
public void dec(int delta)
public T get()
Monitorable
public void set(T newValue)
Copyright © 2009–2018 Performance Co-Pilot. All rights reserved.