HedgingStrategyOptions<T> class
Configuration options for the hedging strategy.
Constructors
-
HedgingStrategyOptions.new({int maxHedgedAttempts = 1, Duration delay = const Duration(seconds: 1), HedgingDelayGenerator<
T> ? delayGenerator, ShouldHandlePredicate<T> ? shouldHandle, HedgingActionGenerator<T> ? actionGenerator, OnHedgingCallback<T> ? onHedging}) -
Creates hedging strategy options.
const
Properties
-
actionGenerator
→ HedgingActionGenerator<
T> ? -
Generator for creating hedged actions.
final
- delay → Duration
-
Delay before starting hedged attempts (default: 1 second).
final
-
delayGenerator
→ HedgingDelayGenerator<
T> ? -
Generator for custom delay logic.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxHedgedAttempts → int
-
Maximum number of hedged attempts (default: 1).
final
-
onHedging
→ OnHedgingCallback<
T> ? -
Callback invoked when hedging is triggered.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shouldHandle
→ ShouldHandlePredicate<
T> ? -
Predicate to determine which outcomes should trigger hedging.
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