Package com.vaadin.flow.server
Class SessionLockEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.server.AbstractSessionLockEvent
com.vaadin.flow.server.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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSessionLockEvent(VaadinService service) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new session lock event. -
Method Summary
Methods inherited from class com.vaadin.flow.server.AbstractSessionLockEvent
getService, getSourceMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
SessionLockEvent
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, notnull
-
SessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventon theservice event businstead