Class LocalApplicationEventChannelSupplier

java.lang.Object
io.jmix.core.cluster.LocalApplicationEventChannelSupplier
All Implemented Interfaces:
ClusterApplicationEventChannelSupplier, Supplier<org.springframework.messaging.SubscribableChannel>

@NullMarked public class LocalApplicationEventChannelSupplier extends Object implements ClusterApplicationEventChannelSupplier
Provides a channel that publishes messages only to owner application instance which is used in single-instance applications.

Each supplier instance has its own channel, so several application contexts in one JVM do not share subscribers.

  • Field Details

    • localChannel

      protected final org.springframework.messaging.SubscribableChannel localChannel
  • Constructor Details

    • LocalApplicationEventChannelSupplier

      public LocalApplicationEventChannelSupplier()
  • Method Details

    • get

      public org.springframework.messaging.SubscribableChannel get()
      Specified by:
      get in interface Supplier<org.springframework.messaging.SubscribableChannel>