Package org.openqa.selenium.grid.data
Class SessionClosedEvent
java.lang.Object
org.openqa.selenium.events.Event
org.openqa.selenium.grid.data.SessionClosedEvent
Event fired when a session is closed on a node. This event provides context about the closed
session for sidecar services to consume, enabling functionality such as stopping video recording,
collecting logs, or other session lifecycle management.
-
Constructor Summary
ConstructorsConstructorDescriptionFull constructor with rich session context for sidecar services.Backward compatible constructor using just SessionId.SessionClosedEvent(SessionId id, SessionClosedReason reason) Backward compatible constructor using SessionId and reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic EventListener<SessionClosedData> listener(Consumer<SessionClosedData> handler) static EventListener<SessionClosedData> sessionListener(Consumer<SessionId> handler)
-
Constructor Details
-
SessionClosedEvent
Backward compatible constructor using just SessionId. -
SessionClosedEvent
Backward compatible constructor using SessionId and reason. -
SessionClosedEvent
Full constructor with rich session context for sidecar services.- Parameters:
data- the complete session closed data including node context and timing
-
-
Method Details
-
listener
-
sessionListener
-