Package com.illumon.iris.controller
Interface ControllerHashtableChangeListener
public interface ControllerHashtableChangeListener
Alternate way to listen to ControllerHashtableEventSource events, with adapters to allow less boilerplate code.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ControllerHashtableChangeListener.Adapter
Eliminates some of the boilerplate code in handling ControllerHashtable events.static class
ControllerHashtableChangeListener.SimpleAdapter
static class
ControllerHashtableChangeListener.WeakReferenceAdapter
-
Method Summary
Modifier and Type Method Description void
handleAdd(Long key, PersistentQueryInfo newValue)
Handle the addition of a <key, value> to a ControllerHashtable.void
handleChange(Long key, PersistentQueryInfo oldValue, PersistentQueryInfo newValue)
Handle a change to a <key, value> in a ControllerHashtable.void
handleRemove(Long key, PersistentQueryInfo oldValue)
Handle the removal of a <key, value> from a ControllerHashtable.
-
Method Details
-
handleAdd
Handle the addition of a <key, value> to a ControllerHashtable.- Parameters:
key
- the serial number of the persistent querynewValue
- the new configuration and status of the query
-
handleRemove
Handle the removal of a <key, value> from a ControllerHashtable.- Parameters:
key
- the serial number of the persistent queryoldValue
- the configuration and status of the query before removal
-
handleChange
Handle a change to a <key, value> in a ControllerHashtable.- Parameters:
key
- the serial number of the persistent queryoldValue
- the previous configuration and status of the querynewValue
- the new configuration and status of the query
-