public class MonitoredLongValue extends MonitoredValue<T> implements Counter
Monitorable
implementation for a free-running Long value.Modifier and Type | Field and Description |
---|---|
protected T |
value |
LOG
NULL_COUNTER
Constructor and Description |
---|
MonitoredLongValue(String name,
String description,
Long initialValue) |
MonitoredLongValue(String name,
String description,
MonitorableRegistry registry,
Long initialValue) |
MonitoredLongValue(String name,
String description,
MonitorableRegistry registry,
Long 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 |
inc(long increment) |
void |
set(T newValue)
Sets the current value of this Monitorable.
|
attachMonitor, getDescription, getName, getSemantics, getType, getUnit, logValue, notifyMonitors, registerSelf, removeMonitor
public MonitoredLongValue(String name, String description, MonitorableRegistry registry, Long initialValue)
public MonitoredLongValue(String name, String description, MonitorableRegistry registry, Long 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-2019 Performance Co-Pilot. All Rights Reserved.