public class Bus extends Object
push(Event)
method are
synchronously dispatched to all registered EventHandler
s, which
usually should be InPushConnector
instances.Constructor and Description |
---|
Bus() |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(EventHandler handler)
Add a handler to receive new events.
|
URI |
getTransportUri()
Return the URI describing the transport manifested by this bus.
|
void |
push(Event event)
Dispatch an event to all registered handlers.
|
void |
removeHandler(EventHandler handler)
Removes a handler from the event receiving.
|
public void push(Event event)
event
- the event to dispatchpublic void addHandler(EventHandler handler)
handler
- the handlerpublic void removeHandler(EventHandler handler)
handler
- the handlerpublic URI getTransportUri()
null
IllegalStateException
- instance is in wrong state to prepare the URICopyright © 2018 CoR-Lab. All rights reserved.