RetryConfig class

Configuration for the event retry system

Constructors

RetryConfig()

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

availablePresets List<String>
Gets the names of available predefined configurations
no setter
backgroundProcessingInterval int
Gets the current background processing interval
no setter
retryIntervals List<int>
Gets the current retry intervals
no setter

Static Methods

applyPresetConfiguration(String presetName) bool
Applies a predefined configuration
fromMap(Map<String, dynamic> config) bool
Loads configuration from a map
getRetryIntervalForAttempt(int attemptNumber) int?
Gets the retry interval for a specific attempt
resetToDefaults() → void
Restores the default configuration
setBackgroundProcessingInterval(int intervalSeconds) bool
Configures the background processing interval
setRetryIntervals(List<int> intervals) bool
Configures custom retry intervals
toMap() Map<String, dynamic>
Gets the current configuration as a map
validateBackgroundInterval(int intervalSeconds) bool
Validates if a background processing interval is valid
validateRetryIntervals(List<int> intervals) bool
Validates if a set of intervals is valid

Constants

defaultBackgroundProcessingInterval → const int
Default interval for background processing (in seconds)
defaultRetryIntervals → const List<int>
Default retry intervals (in seconds) First retry: 30 seconds Second retry: 2 minutes (120 seconds) Third retry: 5 minutes (300 seconds)
maximumRetryInterval → const int
Maximum time between retries (in seconds)
maxRetryAttempts → const int
Maximum number of attempts per event
minimumRetryInterval → const int
Minimum time between retries (in seconds)
presetConfigurations → const Map<String, List<int>>
Predefined configurations for different scenarios