public interface Monitor
Monitorable
objects it is attached to. This makes it effectively an 'output sink' for all
monitorable changes. When a Monitorable changes value, it will notify all
Monitors via valueChanged(Monitorable). Note that Monitors are under
no obligation to process this immediately - they may elect to queue the
notification for later update, swallow intermediate updates, etc., depending
on implementation.| Modifier and Type | Method and Description |
|---|---|
void |
valueChanged(Monitorable<?> monitorable)
Notifies the Monitor about a change in the underlying value of a
Monitorable. |
void valueChanged(Monitorable<?> monitorable)
Monitorable. It is not guaranteed that the value obtained by
Monitorable.get() will return the value that triggered the
update, as the value may update in the meantime.monitorable - the Monitorable whose value has changed.