Class ClusterSupport

java.lang.Object
com.vaadin.kubernetes.starter.ui.ClusterSupport
All Implemented Interfaces:
com.vaadin.flow.server.VaadinServiceInitListener, Serializable, EventListener

public class ClusterSupport extends Object implements com.vaadin.flow.server.VaadinServiceInitListener
Cluster support for Vaadin applications. This component allows receiving events from the cluster running the Vaadin application.
See Also:
  • Field Details

  • Constructor Details

    • ClusterSupport

      public ClusterSupport()
  • Method Details

    • getCurrent

      public static ClusterSupport getCurrent()
      Get the current instance of the ClusterSupport.
    • setSwitchVersionListener

      public void setSwitchVersionListener(SwitchVersionListener listener)
      Register the global version switch listener. If set to null the current session and the sticky cluster cookie are removed without any version switch condition check.
      Parameters:
      listener - the listener to register.
    • serviceInit

      public void serviceInit(com.vaadin.flow.server.ServiceInitEvent serviceInitEvent)
      Specified by:
      serviceInit in interface com.vaadin.flow.server.VaadinServiceInitListener