Interface: CircuitBreakerOptions
Defined in: src/mantle/errors/index.ts:712 Error Handling and Recovery Module Comprehensive error handling with retry logic and circuit breakers.Example
Properties
failureThreshold?
halfOpenMaxCalls?
onFailure()?
Parameters
name
string
error
Returns
void
onStateChange()?
Parameters
name
string
from
to
Returns
void
onSuccess()?
Parameters
name
string
Returns
void