Class: Kumonos::Clusters::CircuitBreaker
- Inherits:
-
Struct
- Object
- Struct
- Kumonos::Clusters::CircuitBreaker
- Defined in:
- lib/kumonos/clusters.rb
Instance Attribute Summary collapse
-
#max_connections ⇒ Object
Returns the value of attribute max_connections.
-
#max_pending_requests ⇒ Object
Returns the value of attribute max_pending_requests.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
Class Method Summary collapse
Instance Attribute Details
#max_connections ⇒ Object
Returns the value of attribute max_connections
74 75 76 |
# File 'lib/kumonos/clusters.rb', line 74 def max_connections @max_connections end |
#max_pending_requests ⇒ Object
Returns the value of attribute max_pending_requests
74 75 76 |
# File 'lib/kumonos/clusters.rb', line 74 def max_pending_requests @max_pending_requests end |
#max_retries ⇒ Object
Returns the value of attribute max_retries
74 75 76 |
# File 'lib/kumonos/clusters.rb', line 74 def max_retries @max_retries end |
Class Method Details
.build(h) ⇒ Object
76 77 78 |
# File 'lib/kumonos/clusters.rb', line 76 def build(h) new(h.fetch('max_connections'), h.fetch('max_pending_requests'), h.fetch('max_retries')) end |