Class: Kumonos::Routes::RetryPolicy
- Inherits:
-
Struct
- Object
- Struct
- Kumonos::Routes::RetryPolicy
- Defined in:
- lib/kumonos/routes.rb
Instance Attribute Summary collapse
-
#num_retries ⇒ Object
Returns the value of attribute num_retries.
-
#per_try_timeout_ms ⇒ Object
Returns the value of attribute per_try_timeout_ms.
-
#retry_on ⇒ Object
Returns the value of attribute retry_on.
Class Method Summary collapse
Instance Attribute Details
#num_retries ⇒ Object
Returns the value of attribute num_retries
99 100 101 |
# File 'lib/kumonos/routes.rb', line 99 def num_retries @num_retries end |
#per_try_timeout_ms ⇒ Object
Returns the value of attribute 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_on ⇒ Object
Returns the value of attribute 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 |