class Sidekiq::CircuitBreaker::Configuration

Attributes

failure_threshold[RW]
max_open_time[RW]
scope[R]

Public Class Methods

new() click to toggle source
# File lib/sidekiq/circuit_breaker/configuration.rb, line 9
def initialize
  self.failure_threshold = 7
  self.max_open_time     = 120
end

Public Instance Methods

set_scope(identifier = nil) click to toggle source
# File lib/sidekiq/circuit_breaker/configuration.rb, line 14
def set_scope(identifier = nil)
  @scope = identifier
end