interface ResiliencePluginOptions
Since 0.1.0

Options passed to ResiliencePlugin(). Each default* policy is consumed when a wrap sets the matching field to true; a wrap requesting true with no matching default configured throws.

Properties

readonly
optional
defaultCircuitBreaker: CircuitBreakerPolicy

Default circuit-breaker policy used when a wrap sets circuitBreaker: true.

readonly
optional
defaultRetry: RetryPolicy

Default retry policy used when a wrap sets retry: true.

readonly
optional
defaultBulkhead: BulkheadPolicy

Default bulkhead policy used when a wrap sets bulkhead: true.

Usage

import { type ResiliencePluginOptions } from "resilience-plugin/src/index.ts";