SessionPresence class final
One live-session heartbeat record.
Constructors
- SessionPresence({required String sessionId, required String startedAt, required String touchedAt, int? pid, String? host})
-
Creates the record.
const
-
SessionPresence.fromJson(String sessionId, Map<
String, dynamic> json) -
Parses the JSON shape the file store persists.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String?
-
The machine host name, when known (diagnostics only; the remote
future surfaces which machine owns the session).
final
- pid → int?
-
The OS process id, when known (diagnostics only).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String
-
The session the running process owns.
final
- startedAt → String
-
When the process started (UTC ISO 8601).
final
- touchedAt → String
-
When the process last proved liveness (UTC ISO 8601) — rewritten on
every heartbeat tick.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited