| Modifier and Type | Method and Description |
|---|---|
void |
addListener(boolean initialize,
IConsumer<V> listener)
Add the given listener and optionally call back immediately with the
current value.
|
V |
getValue() |
IMonitor<V> |
setValue(V value) |
IMonitor<V> |
setValueIfGreater(V value) |
addListener, removeListenerV getValue()
void addListener(boolean initialize,
IConsumer<V> listener)
initialize - If true then call the listener with the current value.listener - A listener which will be called whenever the value
of this monitor changes.Copyright © 2018 Symphony Software Foundation. All rights reserved.