Search in sources :

Example 1 with SessionDestroyEvent

use of com.vaadin.flow.server.SessionDestroyEvent in project flow by vaadin.

the class SpringVaadinSession method fireSessionDestroy.

/**
 * Handles destruction of the session.
 */
public void fireSessionDestroy() {
    SessionDestroyEvent event = new SessionDestroyEvent(getService(), this);
    destroyListeners.stream().forEach(listener -> listener.sessionDestroy(event));
    destroyListeners.clear();
}
Also used : SessionDestroyEvent(com.vaadin.flow.server.SessionDestroyEvent)

Aggregations

SessionDestroyEvent (com.vaadin.flow.server.SessionDestroyEvent)1