Interface for Resilience Options.

interface ResilienceOptions {
    circuitBreaker?: boolean;
    retry?: number | boolean;
    timeout?: number | boolean;
}

Properties

circuitBreaker?: boolean

Option for circuit breaker middleware. True by default. Set false to disable.

retry?: number | boolean

Option for retry middleware. False by default. If set to true, the number of retries is 3. Assign a different value to set custom number of reties.

timeout?: number | boolean

Option for timeout middleware. True by default, with a 10000 milliseconds timeout. Assign a different value to set a custom timeout.

Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.