DVProtocolWindow class

How far back a backend serves: versions previous protocol versions or minimumAge, whichever reaches further.

Constructors

DVProtocolWindow({int versions = 3, Duration minimumAge = const Duration(days: 90), double strandThreshold = 0.005})
const
DVProtocolWindow.fromConfig(Map<Object?, Object?>? config)
Reads dartvel.protocol from pubspec.yaml. Absent means the defaults; a value that cannot be read is refused rather than defaulted, because a typo that silently became the default would be a window nobody chose.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
minimumAge → Duration
A version superseded less than this long ago is served regardless of versions.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strandThreshold → double
The share of sessions, over the last seven days, a version outside a candidate's window may carry before the deploy gate refuses it.
final
versions → int
Previous versions served in addition to the current one.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
served(DVProtocolLock lock, {required DateTime now}) → Set<int>
The protocol versions in lock this window serves at now.
toString() → String
A string representation of this object.
inherited

Operators

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