Package org.opentcs.util.event
Schnittstelle EventSource
- Alle bekannten Unterschnittstellen:
EventBus
- Alle bekannten Implementierungsklassen:
SimpleEventBus
public interface EventSource
A source of events that can be subscribed to.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
subscribe
(EventHandler listener) Subscribes the given listener to events emitted by this source.void
unsubscribe
(EventHandler listener) Unsubscribes the given listener.
-
Methodendetails
-
subscribe
Subscribes the given listener to events emitted by this source.- Parameter:
listener
- The listener to be subscribed.
-
unsubscribe
Unsubscribes the given listener.- Parameter:
listener
- The listener to be unsubscribed.
-