@ProviderType public interface TypedEventBus
Modifier and Type | Method and Description |
---|---|
void |
deliver(Object event)
Initiate asynchronous, ordered delivery of an event.
|
void |
deliver(String topic,
Object event)
Initiate asynchronous, ordered delivery of an event.
|
void |
deliverUntyped(String topic,
Map<String,?> event)
Initiate asynchronous, ordered delivery of event data.
|
void deliver(Object event)
The topic for this event will be automatically set to the fully qualified type name for the supplied event object.
Logically equivalent to calling
deliver(event.getClass().getName().replace('.', '/'), event)
event
- The event to send to all listeners which subscribe to the
topic of the event.NullPointerException
- if the event object is nullvoid deliver(String topic, Object event)
topic
- The topic to which this event should be sent.event
- The event to send to all listeners which subscribe to the
topic.NullPointerException
- if the event object is nullIllegalArgumentException
- if the topic name is not validvoid deliverUntyped(String topic, Map<String,?> event)
topic
- The topic to which this event should be sent.event
- A Map representation of the event data to send to all
listeners which subscribe to the topic.NullPointerException
- if the event map is nullIllegalArgumentException
- if the topic name is not validCopyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0