Sha256: 7971c5357858d18e8bba5f4b2cb1a5da0b0968d664e0363a0dcb84b6ae70ee58
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
module CircuitBreaker class Config FAILURE_THRESHOLD = 10 FAILURE_THRESHOLD_PERCENTAGE = 0.5 INVOCATION_TIMEOUT = 10 RETRY_TIMEOUT = 60 attr_accessor :invocation_timeout, :failure_threshold, :failure_threshold_percentage, :retry_timeout def initialize self.failure_threshold = FAILURE_THRESHOLD self.failure_threshold_percentage = FAILURE_THRESHOLD_PERCENTAGE self.invocation_timeout = INVOCATION_TIMEOUT self.retry_timeout = RETRY_TIMEOUT end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
circuit_breaker-ruby-0.1.1 | lib/circuit_breaker-ruby/config.rb |
circuit_breaker-ruby-0.1 | lib/circuit_breaker-ruby/config.rb |