TrueTimeEngine class
Constructors
-
TrueTimeEngine({required List<
TimeSource> sources, MonotonicClock? clock, TrueTimeConfig config = const TrueTimeConfig(), AnchorStore? store, BootEpochProvider epochProvider = const UnknownBootEpochProvider(), TimeScheduler? scheduler, Random? random, bool autoRefresh = true, WallClockReader? wallClock, Duration diagnosticInterval = const Duration(seconds: 30), Duration wallClockJumpThreshold = const Duration(seconds: 2), bool foreground = true})
Properties
- autoRefresh → bool
-
final
- clock → MonotonicClock
-
final
- config → TrueTimeConfig
-
final
- diagnosticInterval → Duration
-
final
- epochProvider → BootEpochProvider
-
final
-
events
→ Stream<
TimeEvent> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTrusted → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sources
→ List<
TimeSource> -
final
- status → TimeStatus
-
no setter
- store → AnchorStore?
-
final
- wallClock → WallClockReader?
-
final
- wallClockJumpThreshold → Duration
-
final
Methods
-
dispose(
) → Future< void> -
estimate(
) → TimeReading? -
forceResync(
) → Future< SyncOutcome> -
initialize(
) → Future< void> -
invalidateContinuity(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
now(
) → DateTime -
pollDiagnostics(
) → void - Informational diagnostics never advance or invalidate a UTC anchor. Failed wall-clock reads skip the poll and reset its diagnostic baseline. Scheduled polling retries at the next interval without emitting a change.
-
read(
) → TimeReading -
resume(
) → void -
suspend(
) → void -
sync(
) → Future< SyncOutcome> -
toString(
) → String -
A string representation of this object.
inherited
-
waitUntilReady(
{Duration timeout = const Duration(seconds: 5)}) → Future< TimeReading> - Waits for a reading that satisfies the policy at its sampled instant. Each check validates and returns the same reading; the anchor can expire after sampling, so callers must obtain another reading for later work.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- maximumSources → const int
- Bounds collection and post-deadline consensus finalization work.