Class SessionLockReleasedEvent

All Implemented Interfaces:
Serializable

public class SessionLockReleasedEvent extends AbstractSessionLockEvent
Event fired through the service event bus when a Vaadin session lock has been released, for the outermost release only. It is fired in reverse registration order so that listeners nest: a listener added first is notified of the release last.
Since:
25.3
See Also:
  • Constructor Details

    • SessionLockReleasedEvent

      public SessionLockReleasedEvent(VaadinService service)
      Creates a new event without a session and with a zero hold time.
      Parameters:
      service - the Vaadin service whose session lock is released, not null
    • SessionLockReleasedEvent

      public SessionLockReleasedEvent(VaadinService service, VaadinSession session, Duration holdTime)
      Creates a new event for the given session and hold time.
      Parameters:
      service - the Vaadin service whose session lock is released, not null
      session - the Vaadin session the lock belongs to, or null if it is not known
      holdTime - how long the thread held the lock, not null
  • Method Details

    • getHoldTime

      public Duration getHoldTime()
      Gets how long the thread held the lock, from the moment it acquired the lock until it released it. The time spent in listeners of SessionLockAcquiredEvent is included, since the lock is held while they run.
      Returns:
      the hold time, not null