PeerClockOffsets class final

Per-peer clock offsets for one process, shared by every stream on a transport.

An offset is a property of the peer process, not of any one stream, so the coordination path and every data stream read the same table. Keyed on node uId, which is the only identifier stable across role changes and transports (MessageTiming.sourceId is transport-specific and is not always a uId).

Constructors

PeerClockOffsets()

Properties

estimates → Stream<ClockSyncSample>
Every estimate as it is accepted, for whichever peer.
no setter
hashCode → int
The hash code for this object.
no setterinherited
peers → Iterable<String>
Peers with an accepted estimate.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
estimateFor(String? peerUId) → ClockOffsetEstimate?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offsetFor(String? peerUId) → double?
The offset to add to peerUId's timestamps, or null if unknown.
remove(String peerUId) → void
set(String peerUId, ClockOffsetEstimate estimate) → void
toString() → String
A string representation of this object.
inherited
uncertaintyFor(String? peerUId) → double?
The error bound on offsetFor, or null if unknown.

Operators

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