Class InMemoryClusterBus
java.lang.Object
com.kingsrook.qqq.backend.core.cluster.InMemoryClusterBus
- All Implemented Interfaces:
ClusterBusInterface
A single-node cluster bus: events never leave this JVM. The default, so a
single-node application behaves exactly as before.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpublish(ClusterEvent event) Deliver to this JVM's subscribers.subscribe(Consumer<ClusterEvent> listener) Subscribe.
-
Constructor Details
-
InMemoryClusterBus
public InMemoryClusterBus()
-
-
Method Details
-
publish
Deliver to this JVM's subscribers.- Specified by:
publishin interfaceClusterBusInterface
-
subscribe
Subscribe.- Specified by:
subscribein interfaceClusterBusInterface
-