Immutable, XML-persisted registry of all currently active debug sessions across every tenant on this server instance. DebugSessionsHelper loads and saves this to a single file, and DebugService applies updates by deriving a new DebugSessions with withNewSession, withoutSession or withoutExpiredSessions rather than mutating an instance in place. Serialised to XML as a debug-sessions element holding one child per active session.
Group: Debugging
Properties
| Property | Returns | Description |
|---|---|---|
| sessions | List<DebugSession> | All active debug sessions currently held by this registry, across every tenant. |
Methods
getSessions()
Returns: List<DebugSession>
All active debug sessions currently held by this registry, across every tenant.
withNewSession(DebugSession session)
Returns: DebugSessions
Returns a new registry containing this registry's sessions plus the given session appended.
| Parameter | Description |
|---|---|
session | the session to add |
withoutExpiredSessions(Date now)
Returns: DebugSessions
Returns a new registry containing only this registry's sessions that have not yet expired as of the given time.
| Parameter | Description |
|---|---|
now | the time to check expiry against |
withoutSession(String sessionId)
Returns: DebugSessions
Returns a new registry with the session matching the given id removed, if present.
| Parameter | Description |
|---|---|
sessionId | the id of the session to remove |
withoutSession(String sessionId, Consumer<DebugSession> onRemoveSession)
Returns: DebugSessions
Returns a new registry with the session matching the given id removed, if present, invoking the given callback with the removed session.
| Parameter | Description |
|---|---|
sessionId | the id of the session to remove |
onRemoveSession | callback invoked with the removed session, or null to skip the callback |
findDebugSession(String sessionId)
Returns: DebugSession
Looks up a session in this registry by its id.
| Parameter | Description |
|---|---|
sessionId | the id of the session to find |