Class: AWS::Flow::ExponentialRetryOptions
- Inherits:
-
RetryOptions
- Object
- Options
- RetryOptions
- AWS::Flow::ExponentialRetryOptions
- Defined in:
- lib/aws/decider/options.rb
Overview
Exponential retry options for the ActivityClient#exponential_retry method.
Instance Attribute Summary collapse
-
#backoff_coefficient ⇒ Object
The backoff coefficient to use.
-
#retry_expiration_interval_seconds ⇒ Object
The retry expiration interval, in seconds.
Instance Method Summary collapse
Methods inherited from RetryOptions
Methods inherited from Options
#get_options, inherited, #initialize, #method_missing
Constructor Details
This class inherits a constructor from AWS::Flow::RetryOptions
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AWS::Flow::Options
Instance Attribute Details
#backoff_coefficient ⇒ Object
The backoff coefficient to use. This is a floating point value that is multiplied with the current retry interval after every retry attempt. The default value is 2.0, which means that each retry will take twice as long as the previous.
241 242 243 |
# File 'lib/aws/decider/options.rb', line 241 def backoff_coefficient @backoff_coefficient end |
#retry_expiration_interval_seconds ⇒ Object
The retry expiration interval, in seconds. This will be increased after every retry attempt by the factor provided in backoff_coefficient
.
245 246 247 |
# File 'lib/aws/decider/options.rb', line 245 def retry_expiration_interval_seconds @retry_expiration_interval_seconds end |
Instance Method Details
#next_retry_delay_seconds(first_attmept, recorded_failure, attempts) ⇒ Object
247 248 249 250 251 |
# File 'lib/aws/decider/options.rb', line 247 def next_retry_delay_seconds(first_attmept, recorded_failure, attempts) raise IllegalArgumentException "Attempt number is #{attempts}, when it needs to be greater than 1" if @maximum_attempts end end |