Package com.vaadin.kubernetes.starter.ui
Interface SwitchVersionListener
- All Superinterfaces:
Serializable
Interface for receiving events on version change.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidMakes possible to do application level clean-up before the version switch.default booleannodeSwitch(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:
trueif the cluster node change is ok (default value),falseif the change should not be performed.
-
doAppCleanup
default void doAppCleanup()Makes possible to do application level clean-up before the version switch.
-