FixedDelayStrategy class
Fixed delay reconnection strategy.
- Implemented types
Constructors
- FixedDelayStrategy.new({Duration delay = const Duration(seconds: 5)})
-
Creates a new FixedDelayStrategy.
const
Properties
Methods
-
calculateDelay(
int attemptNumber) → Duration -
Calculates the delay before the next reconnection attempt.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
Resets the strategy state.
override
-
shouldReconnect(
int attemptNumber, int maxAttempts) → bool -
Determines if reconnection should be attempted.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited