Package com.vaadin.kubernetes.starter.ui
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserviceInit(com.vaadin.flow.server.ServiceInitEvent serviceInitEvent) voidRegister the global version switch listener.
-
Field Details
-
ENV_APP_VERSION
Version environment variable name.- See Also:
-
UPDATE_VERSION_HEADER
Update version header name.- See Also:
-
STICKY_CLUSTER_COOKIE
Sticky cluster cookie name.- See Also:
-
-
Constructor Details
-
ClusterSupport
public ClusterSupport()
-
-
Method Details
-
setSwitchVersionListener
Register the global version switch listener. If set tonullthe 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:
serviceInitin interfacecom.vaadin.flow.server.VaadinServiceInitListener
-