public class EventBus extends Object implements Constructable
EventListener are registered to the EventBus which delegates the fired Event to the
EventListener.| Constructor and Description |
|---|
EventBus() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Constructs this object.
|
void |
register(EventListener listener)
Register a new
EventListener to the EventBus. |
void |
setAsync(boolean async) |
void |
submit(Event event)
|
void |
unregister(EventListener listener)
Unregister a new
EventListener to the EventBus. |
public void setAsync(boolean async)
public void init()
Constructableinit in interface Constructablepublic void register(EventListener listener)
EventListener to the EventBus.listener - EventListener to registerpublic void unregister(EventListener listener)
EventListener to the EventBus.listener - EventListener to unregisterCopyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.