Class: Kumonos::Clusters::CircuitBreaker

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#max_connectionsObject

Returns the value of attribute max_connections

Returns:

  • (Object)

    the current value of max_connections



74
75
76
# File 'lib/kumonos/clusters.rb', line 74

def max_connections
  @max_connections
end

#max_pending_requestsObject

Returns the value of attribute max_pending_requests

Returns:

  • (Object)

    the current value of max_pending_requests



74
75
76
# File 'lib/kumonos/clusters.rb', line 74

def max_pending_requests
  @max_pending_requests
end

#max_retriesObject

Returns the value of attribute max_retries

Returns:

  • (Object)

    the current value of 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