Class SessionClosedData
java.lang.Object
org.openqa.selenium.grid.data.SessionClosedData
Data structure that carries session closure information for SessionClosedEvent. This provides
rich context about closed sessions for sidecar services to consume, enabling functionality such
as stopping video recording, collecting logs, or other session lifecycle management.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionClosedData(SessionId sessionId, SessionClosedReason reason) Backward compatible constructor for existing code.SessionClosedData(SessionId sessionId, SessionClosedReason reason, @Nullable NodeId nodeId, @Nullable URI nodeUri, @Nullable Capabilities capabilities, @Nullable Instant startTime, Instant endTime) Full constructor with all session context for sidecar services. -
Method Summary
-
Constructor Details
-
SessionClosedData
Backward compatible constructor for existing code. -
SessionClosedData
public SessionClosedData(SessionId sessionId, SessionClosedReason reason, @Nullable NodeId nodeId, @Nullable URI nodeUri, @Nullable Capabilities capabilities, @Nullable Instant startTime, Instant endTime) Full constructor with all session context for sidecar services.
-
-
Method Details
-
getSessionId
-
getReason
-
getNodeId
-
getNodeUri
-
getCapabilities
-
getStartTime
-
getEndTime
-
getSessionDuration
Returns the duration of the session, or null if start time is not available.- Returns:
- the session duration, or null if start time was not recorded
-
toString
-