RetryBackoffDecision class final
One backoff decision: the delay to wait, where it came from, and the diagnostic bits the trace line renders.
Constructors
- RetryBackoffDecision({required Duration delay, required RetryDelaySource source, Duration? advertised, bool malformedHeader = false, String? rawHeader})
-
const
Properties
- advertised → Duration?
-
The server's advertised delay, when a parseable
Retry-Afterwas present (verbatim, pre-clamp — the clamp line names it).final - delay → Duration
-
The delay to wait before the next attempt.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- malformedHeader → bool
-
E3: a
Retry-Afterheader was present but unparseable (non-numeric or an HTTP-date) — the ladder applies and the trace line notes it.final - rawHeader → String?
-
The raw header value when malformedHeader (the trace note quotes it).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → RetryDelaySource
-
Where the delay came from (RetryDelaySource).
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