Package io.github.teceli.resiliencia.patterns.circuitbreaker
package io.github.teceli.resiliencia.patterns.circuitbreaker
-
ClassDescriptionCircuitBreaker pattern: track recent call outcomes in a sliding window and stop calling a failing or slow downstream once the failure or slow-call rate crosses its threshold, rejecting calls immediately instead of piling more load onto something already struggling.Events emitted by the CircuitBreaker pattern.Thrown when a call is rejected because the circuit breaker will not let it through: either the circuit is Open, or it is HalfOpen and every permitted test call has already been issued.The state of a
CircuitBreakerat a point in time.Calls pass through normally while their outcomes are recorded in the sliding window.A limited number of test calls are let through to probe whether the downstream has recovered.Calls are rejected immediately.