Skip to content

Connectum API Reference / @connectum/interceptors / CircuitBreakerOptions

Interface: CircuitBreakerOptions

Defined in: types.ts:126

Circuit breaker interceptor options

Properties

halfOpenAfter?

optional halfOpenAfter: number

Defined in: types.ts:137

Time in milliseconds to wait before attempting to close circuit

Default

ts
30000 (30 seconds)

skipStreaming?

optional skipStreaming: boolean

Defined in: types.ts:143

Skip circuit breaker for streaming calls

Default

ts
true

threshold?

optional threshold: number

Defined in: types.ts:131

Number of consecutive failures before opening circuit

Default

ts
5