Package com.vaadin.kubernetes.starter.ui
Interface SwitchVersionListener
- All Superinterfaces:
Serializable
Interface for receiving events on version change.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Makes possible to do application level clean-up before the version switch.default boolean
nodeSwitch
(com.vaadin.flow.server.VaadinRequest vaadinRequest, com.vaadin.flow.server.VaadinResponse vaadinResponse) Notify about the cluster node change to allow graceful transition of the users.
-
Method Details
-
nodeSwitch
default boolean nodeSwitch(com.vaadin.flow.server.VaadinRequest vaadinRequest, com.vaadin.flow.server.VaadinResponse vaadinResponse) Notify about the cluster node change to allow graceful transition of the users. Note: Even returningfalse
, the application might still be shut down by the environment.- Parameters:
vaadinRequest
- Vaadin request when the change is initiated.vaadinResponse
- Response from the server to be sent to the client.- Returns:
true
if the cluster node change is ok (default value),false
if the change should not be performed.
-
doAppCleanup
default void doAppCleanup()Makes possible to do application level clean-up before the version switch.
-