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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterSupport
Get the current instance of the ClusterSupport.void
serviceInit
(com.vaadin.flow.server.ServiceInitEvent serviceInitEvent) void
Register 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
-
getCurrent
Get the current instance of the ClusterSupport. -
setSwitchVersionListener
Register the global version switch listener. If set tonull
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 interfacecom.vaadin.flow.server.VaadinServiceInitListener
-