Class: AWS::Flow::ExponentialRetryOptions

Inherits:
RetryOptions show all
Defined in:
lib/aws/decider/options.rb

Overview

Exponential retry options for the ActivityClient#exponential_retry method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RetryOptions

#initialize, #isRetryable

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_coefficientObject

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_secondsObject

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