Skip to content

UTIL_CircuitBreaker.State ​

Class

apex
global enum UTIL_CircuitBreaker.State

Enum representing the circuit breaker state


Inner Classes ​

ClassDescription
CLOSEDNormal operation - requests pass through
HALF_OPENTesting recovery - limited requests allowed to test if service recovered
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