Skip to content

UTIL_CircuitBreaker.State

Class

apex
global enum UTIL_CircuitBreaker.State

Enum representing the circuit breaker state

Since: 1.0


Values

ValueDescription
global CLOSEDNormal operation - requests pass through
global HALF_OPENTesting recovery - limited requests allowed to test if service recovered
global OPENCircuit is open - requests fail fast without attempting call

Value Details

CLOSED

apex
global CLOSED

Normal operation - requests pass through

HALF_OPEN

apex
global HALF_OPEN

Testing recovery - limited requests allowed to test if service recovered

OPEN

apex
global OPEN

Circuit is open - requests fail fast without attempting call