CheckpointSessionSink class final

The host seam for session persistence the controller drives.

Hosts persist the in-memory transcript on their own schedule; the controller needs precise anchors, so it flushes the messages it relies on through persistMessage itself (idempotent for hosts that persist live — persistedMessageCount then already covers them).

Constructors

CheckpointSessionSink({required Session? session(), required int persistedMessageCount(), required Future<String> persistMessage(Message message)})
Creates a CheckpointSessionSink.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
persistedMessageCount int Function()
How many leading in-memory messages the host has already persisted.
final
persistMessage Future<String> Function(Message message)
Persists one in-memory message at the session leaf and bumps the host's persisted counter. Returns the new record id.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session Session? Function()
The current session, or null when the host has none (the controller then degrades to in-memory pruning only).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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