Package io.openems.edge.bridge.http
Class CycleSubscriber
java.lang.Object
io.openems.edge.bridge.http.CycleSubscriber
- All Implemented Interfaces:
org.osgi.service.event.EventHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleEvent
(org.osgi.service.event.Event event) void
Subscribes to the events of the topics this component is subscribed to.boolean
unsubscribe
(Consumer<org.osgi.service.event.Event> eventHandler) Unsubscribes a event handler.
-
Constructor Details
-
CycleSubscriber
public CycleSubscriber()
-
-
Method Details
-
handleEvent
public void handleEvent(org.osgi.service.event.Event event) - Specified by:
handleEvent
in interfaceorg.osgi.service.event.EventHandler
-
subscribe
Subscribes to the events of the topics this component is subscribed to.- Parameters:
eventHandler
- the handler to execute on every event
-
unsubscribe
Unsubscribes a event handler.- Parameters:
eventHandler
- the handler to remove- Returns:
- true if the handler was successfully removed; if the handler was not found returs false
-