SessionManager class

Tracks in-memory gateway session state for resume support.

Constructors

SessionManager()

Properties

canResume bool
Whether the session can be resumed.
no setter
hashCode int
The hash code for this object.
no setterinherited
lastAckAt DateTime?
The time the last heartbeat ACK was received.
no setter
lastSequence int?
The last received sequence number, or null if none.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId String?
The current session ID, or null if no session is active.
no setter

Methods

clear() → void
Clears all session state.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSession(String sessionId) → void
Sets the session ID and resets the sequence counter.
toString() String
A string representation of this object.
inherited
updateLastAck() → void
Updates the last ACK timestamp.
updateSequence(int? sequence) → void
Updates the last received sequence number.

Operators

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