Sha256: e7887ecc6b7394672f62623f2eeef3de1be3328f1b15543d87424d045f6d2979

Contents?: true

Size: 362 Bytes

Versions: 6

Compression:

Stored size: 362 Bytes

Contents

module Sidekiq
  module CircuitBreaker
    class Configuration
      attr_reader :scope

      attr_accessor :failure_threshold
      attr_accessor :max_open_time

      def initialize
        self.failure_threshold = 7
        self.max_open_time     = 120
      end

      def set_scope(identifier = nil)
        @scope = identifier
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-circuit-breaker-0.1.5 lib/sidekiq/circuit_breaker/configuration.rb
sidekiq-circuit-breaker-0.1.4 lib/sidekiq/circuit_breaker/configuration.rb
sidekiq-circuit-breaker-0.1.3 lib/sidekiq/circuit_breaker/configuration.rb
sidekiq-circuit-breaker-0.1.2 lib/sidekiq/circuit_breaker/configuration.rb
sidekiq-circuit-breaker-0.1.1 lib/sidekiq/circuit_breaker/configuration.rb
sidekiq-circuit-breaker-0.1.0 lib/sidekiq/circuit_breaker/configuration.rb