TaskRetryPolicy class

Task Retry Policy is implemented on a best-effort basis.

Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. The default values for minimum and maximum backoffs are 60 seconds and 30 minutes respectively.

Constructors

TaskRetryPolicy.new({String? maximumBackoff, String? minimumBackoff})
TaskRetryPolicy.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
maximumBackoff String?
The maximum amount of time to wait before retrying a failed task.
getter/setter pair
minimumBackoff String?
The minimum amount of time to wait before retrying a failed task.
getter/setter pair
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>
toString() String
A string representation of this object.
inherited

Operators

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