Package com.onec.ui

Class ClusterUiBridge

java.lang.Object
com.onec.ui.ClusterUiBridge

public class ClusterUiBridge extends Object
Receive side of cross-node live-UI sync: subscribes to the ClusterEventBus and pushes events that originated on other nodes to this node's SSE clients via UiEventPublisher.publish(String, String, String, Object, String).

Crucially it calls the plain publish(...) sink, not a Spring ApplicationEventPublisher — a received remote event is never re-emitted as an EntityChangedEvent. That keeps business @EventListeners (cache revalidation, search indexing, outbox relays, post-hooks) firing exactly once, on the originating node, while every node's browsers still see the change. With the default NoOpClusterEventBus the subscription never fires, so this bridge is harmless on a single node.