Package com.illumon.iris.controller
Interface ControllerHashtableEventSource
- All Known Implementing Classes:
ControllerHashtable,ControllerHashtableServer,PersistentQueryControllerClient
public interface ControllerHashtableEventSource
Describes an object to which one may subscribe for ControllerHashtableEvents.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventHandler(@NotNull ControllerHashtableEventHandler handler) Subscribe to events.voidaddEventHandlerAndGetData(@NotNull ControllerHashtableEventHandler handler) Subscribe to events with an initial snapshot of the data.voidremoveEventHandler(@NotNull ControllerHashtableEventHandler handler) Unsubscribe the supplied handler from further events.
-
Method Details
-
addEventHandler
Subscribe to events.- Parameters:
handler- the handler for ControllerHashTableEvents
-
addEventHandlerAndGetData
Subscribe to events with an initial snapshot of the data.- Parameters:
handler- the handler for ControllerHashTableEvents
-
removeEventHandler
Unsubscribe the supplied handler from further events.- Parameters:
handler- the handler to unsubscribe
-