Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CircuitBreaker

Hierarchy

  • CircuitBreaker

Constructors

constructor

Properties

circuit

circuit: any = null

noCircuit

noCircuit: boolean = false

Static DefaultCircuitBreakerOverriden

DefaultCircuitBreakerOverriden: boolean = false

Static EnableDefaultCircuitBreaker

EnableDefaultCircuitBreaker: undefined | string = CircuitBreaker.envVariableCheckForDefaultCircuitBreaker

Static EnableGlobalCircuitBreaker

EnableGlobalCircuitBreaker: boolean = true

Static internalCircuit

internalCircuit: any = new Breaker(FetchWrapper, {timeout: 10000, // If our function takes longer than 10 seconds, trigger a failureerrorThresholdPercentage: 50, // When 50% of requests fail, trip the circuitresetTimeout: 30000 // After 30 seconds, try again.})

Accessors

Static defaultConfiguration

Static envVariableCheckForDefaultCircuitBreaker

  • get envVariableCheckForDefaultCircuitBreaker(): undefined | string

Object literals

Static Private DefaultConfiguration

DefaultConfiguration: object

errorFilter

errorFilter: defaultErrorFilterFunction = defaultErrorFilterFunction

errorThresholdPercentage

errorThresholdPercentage: number = 80

resetTimeout

resetTimeout: number = 30000

rollingCountBuckets

rollingCountBuckets: number = 120

rollingCountTimeout

rollingCountTimeout: number = 120000

timeout

timeout: number = 3600000

volumeThreshold

volumeThreshold: number = 10