Class SessionLockEvent

All Implemented Interfaces:
Serializable

@Deprecated(since="25.3", forRemoval=true) public class SessionLockEvent extends AbstractSessionLockEvent
Deprecated, for removal: This API element is subject to removal in a future version.
Event fired to SessionLockListeners around acquisition and release of a Vaadin session lock.

The same lock instance protects a session whether it is acquired by the framework while handling a request or via VaadinSession.lock() (for example from UI.access(Command)). A listener receives SessionLockListener.lockRequested(com.vaadin.flow.server.SessionLockEvent), SessionLockListener.lockAcquired(com.vaadin.flow.server.SessionLockEvent) and SessionLockListener.lockReleased(com.vaadin.flow.server.SessionLockEvent) on the same thread for a given outermost lock-hold, so timing state can be kept in a thread local.

Since:
25.2
See Also:
  • Constructor Details

    • SessionLockEvent

      public SessionLockEvent(VaadinService service)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new session lock event.
      Parameters:
      service - the Vaadin service whose session lock is being acquired or released, not null