public class SpringVaadinSession
extends com.vaadin.flow.server.VaadinSession
| Constructor and Description |
|---|
SpringVaadinSession(com.vaadin.flow.server.VaadinService service)
Creates a new VaadinSession tied to a VaadinService.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDestroyListener(com.vaadin.flow.server.SessionDestroyListener listener)
Adds a listener that gets notified when the Vaadin service session is
destroyed.
|
void |
fireSessionDestroy()
Handles destruction of the session.
|
access, accessSynchronously, addRequestHandler, addUI, checkHasLock, checkHasLock, close, createStreamResourceRegistry, getAllSessions, getAttribute, getAttribute, getBrowser, getConfiguration, getCsrfToken, getCumulativeRequestDuration, getCurrent, getErrorHandler, getLastRequestDuration, getLastRequestTimestamp, getLocale, getLockInstance, getNextUIid, getPendingAccessQueue, getPushId, getRequestHandlers, getResourceRegistry, getService, getSession, getState, getUIById, getUIs, hasLock, hasLock, lock, refreshTransients, removeRequestHandler, removeUI, setAttribute, setAttribute, setBrowser, setConfiguration, setCurrent, setErrorHandler, setLastRequestDuration, setLastRequestTimestamp, setLocale, setState, unlock, valueBound, valueUnboundpublic SpringVaadinSession(com.vaadin.flow.server.VaadinService service)
service - the Vaadin service for the new sessionpublic void fireSessionDestroy()
public void addDestroyListener(com.vaadin.flow.server.SessionDestroyListener listener)
No need to remove the listener since all listeners are removed automatically once session is destroyed
The session being destroyed is locked and its UIs have been removed when the listeners are called.
listener - the vaadin service session destroy listenerVaadinService.addSessionInitListener(SessionInitListener)Copyright © 2025 Vaadin Ltd. All Rights Reserved.