CircuitBreakerConfig

constructor(failureThreshold: Int = 5, recoveryTimeoutMs: Long = 60000, successThreshold: Int = 2)

Parameters

failureThreshold

Number of failures before opening the circuit (default: 5)

recoveryTimeoutMs

Time in milliseconds before testing recovery (default: 60000ms)

successThreshold

Number of successes needed to close the circuit (default: 2)