CircuitBreakerState

Circuit breaker states.

Name

Description

OPEN

The OPEN state. The circuit breaker is executing the fallback, and switches to the state after the specified time.

CLOSED

The CLOSED state. The circuit breaker lets invocations pass and collects the failures. IF the number of failures reach the specified threshold, the cricuit breaker switches to the state.

HALF_OPEN

The HALF_OPEN state. The circuit breaker has been opened, and is now checking the current situation. It lets pass the next invocation and determines from the result (failure or success) if the circuit breaker can be switched to the state again.