RetryPolicy class sealed

Defines the retry strategy for a workflow step.

Uses sealed class for exhaustive pattern matching.

Implementers

Constructors

RetryPolicy.fromJson(Map<String, dynamic> json)
Creates a RetryPolicy from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this retry policy to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

exponential({required int maxAttempts, Duration initialDelay = const Duration(seconds: 1), double multiplier = 2.0, Duration maxDelay = const Duration(minutes: 5), double jitter = 0.0}) RetryPolicy
Convenience constructor for exponential backoff retry.
fixed({required int maxAttempts, required Duration delay}) RetryPolicy
Convenience constructor for fixed-interval retry.

Constants

none → const RetryPolicy
Convenience constructor for no retry.