T
- type of the data notified by the event.public interface Event<T>
EventImpl
.Modifier and Type | Method and Description |
---|---|
void |
subscribe(EventHandler<T> eventHandler)
Subscribes client to for the event.
|
void |
unsubscribe(EventHandler<T> eventHandler)
Unsubscribes client from the event.
|
void subscribe(EventHandler<T> eventHandler)
eventHandler
- Event handler provided by the client.void unsubscribe(EventHandler<T> eventHandler)
eventHandler
- Event handler that should be unsubscribed from the event.