| Modifier and Type | Method and Description |
|---|---|
void |
addListener(org.symphonyoss.s2.fugue.pipeline.IConsumer<V> listener,
org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)
Add the given listener and optionally call back immediately with the
current value.
|
V |
getValue() |
IMonitor<V> |
setValue(V value,
org.symphonyoss.s2.fugue.core.trace.ITraceContext trace) |
IMonitor<V> |
setValueIfGreater(V value,
org.symphonyoss.s2.fugue.core.trace.ITraceContext trace) |
addListener, removeListenerV getValue()
IMonitor<V> setValueIfGreater(V value, org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)
void addListener(org.symphonyoss.s2.fugue.pipeline.IConsumer<V> listener, org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)
listener - A listener which will be called whenever the value
of this monitor changes.trace - If non-null then call the listener with the current value and the given trace context.Copyright © 2018 Symphony Software Foundation. All rights reserved.