Class NoOpClusterEventBus

java.lang.Object
com.onec.cluster.NoOpClusterEventBus
All Implemented Interfaces:
ClusterEventBus

public final class NoOpClusterEventBus extends Object implements ClusterEventBus
Local-only ClusterEventBus used when no cross-node transport is configured — a single-node deployment, a non-Postgres (e.g. H2) datasource, or onec.cluster.enabled=false.

publish(com.onec.cluster.ClusterEvent) is inert (nothing leaves the JVM) and subscribe(java.util.function.Consumer<com.onec.cluster.ClusterEvent>) never fires (no remote events ever arrive), so wiring it changes nothing: the local SSE fan-out on the change path is the whole story, exactly as before this bus existed.