|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventBusTerminal
Interface describing a mechanism that connects Event Bus clusters. The terminal is responsible for delivering published Events with all of the clusters available in the Event Bus (either locally, or remotely).
Terminals are typically bound to a single Event Bus instance, but may be aware that multiple instances exist in order to form a bridge between these Event Buses.
Method Summary | |
---|---|
void |
onClusterCreated(Cluster cluster)
Invoked when an Event Listener has been assigned to a cluster that was not yet known to the Event Bus. |
void |
publish(EventMessage... events)
Publishes the given events to all clusters on the Event Bus. |
Method Detail |
---|
void publish(EventMessage... events)
events
to all clusters on the Event Bus. The terminal is responsible for the
delivery process, albeit local or remote.
events
- the collections of events to publishvoid onClusterCreated(Cluster cluster)
cluster
- the newly created cluster
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |