RecoveryStrategy
Configuration for the recovery strategy applied by RecoveryOrchestrator.
Defined in: src/core/RecoveryOrchestrator.ts:56
Configuration for the recovery strategy applied by RecoveryOrchestrator.
Remarks
Controls how many recovery attempts are made, the delay between attempts, and the exponential backoff behavior. The delay formula is:
delay = min(initialDelay * backoffMultiplier^(attempt-1), maxDelay)
Example
const strategy: RecoveryStrategy = {
maxAttempts: 3,
initialDelay: 1000,
backoffMultiplier: 2,
maxDelay: 10000,
};
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
backoffMultiplier | number | Backoff multiplier for subsequent attempts. | src/core/RecoveryOrchestrator.ts:62 |
initialDelay | number | Delay in ms before first recovery attempt. | src/core/RecoveryOrchestrator.ts:60 |
maxAttempts | number | Maximum recovery attempts before giving up. | src/core/RecoveryOrchestrator.ts:58 |
maxDelay | number | Maximum delay in ms. | src/core/RecoveryOrchestrator.ts:64 |