SessionPresenceStore class abstract interface

Registry of live sessions: a running agent process registers on start, touches on every heartbeat tick, unregisters on exit. Readers (SessionPresenceStore.list) see only fresh entries — a crashed process is covered by staleness, not by cleanup.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

list() Future<Map<String, SessionPresence>>
The fresh presence records, keyed by session id. Stale entries (their touchedAt older than the store's staleness window) are treated as dead and never returned.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(String sessionId, {int? pid, String? host}) Future<void>
Announces a live process owning sessionId. Also refreshes touchedAt (a register is a touch).
toString() String
A string representation of this object.
inherited
touch(String sessionId) Future<void>
Refreshes the heartbeat for sessionId (no-op when not registered).
unregister(String sessionId) Future<void>
Removes the heartbeat for sessionId (clean exit path).

Operators

operator ==(Object other) bool
The equality operator.
inherited