public interface IStateListener
Modifier and Type | Method and Description |
---|---|
void |
registerKeys()
Register all keys the listener would like to hear about.
|
void |
setBroker(StateBroker broker)
Sets the broker that will send updates to this listener.
|
void |
unregisterKeys()
Unregister all keys for which the listener wants updates.
|
void |
update(java.lang.String key,
java.lang.Object value)
Receive an update notification from the StateBroker.
|
void update(java.lang.String key, java.lang.Object value)
key
- The key of the changed value.value
- The new value.void setBroker(StateBroker broker)
broker
- The new StateBroker to register with and listen to.void registerKeys()
void unregisterKeys()