Interface ClusterBusInterface
- All Known Implementing Classes:
EsbClusterBus,InMemoryClusterBus
public interface ClusterBusInterface
Transport for cluster control events. publish sends to every node (possibly
including this one - ClusterBus drops its own echoes); subscribe receives
the events any node published.
-
Method Summary
Modifier and TypeMethodDescriptionvoidpublish(ClusterEvent event) Send an event to every node.subscribe(Consumer<ClusterEvent> listener) Receive events from every node.
-
Method Details
-
publish
Send an event to every node. -
subscribe
Receive events from every node. Close the result to stop.
-