Class: Kumonos::Routes::RetryPolicy

Inherits:
Struct
  • Object
show all
Defined in:
lib/kumonos/routes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#num_retriesObject

Returns the value of attribute num_retries

Returns:

  • (Object)

    the current value of num_retries



99
100
101
# File 'lib/kumonos/routes.rb', line 99

def num_retries
  @num_retries
end

#per_try_timeout_msObject

Returns the value of attribute per_try_timeout_ms

Returns:

  • (Object)

    the current value of per_try_timeout_ms



99
100
101
# File 'lib/kumonos/routes.rb', line 99

def per_try_timeout_ms
  @per_try_timeout_ms
end

#retry_onObject

Returns the value of attribute retry_on

Returns:

  • (Object)

    the current value of retry_on



99
100
101
# File 'lib/kumonos/routes.rb', line 99

def retry_on
  @retry_on
end

Class Method Details

.build(h) ⇒ Object



101
102
103
# File 'lib/kumonos/routes.rb', line 101

def build(h)
  new(h.fetch('retry_on'), h.fetch('num_retries'), h.fetch('per_try_timeout_ms'))
end