Skip to content

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

PropertyTypeDescriptionDefined in
backoffMultipliernumberBackoff multiplier for subsequent attempts.src/core/RecoveryOrchestrator.ts:62
initialDelaynumberDelay in ms before first recovery attempt.src/core/RecoveryOrchestrator.ts:60
maxAttemptsnumberMaximum recovery attempts before giving up.src/core/RecoveryOrchestrator.ts:58
maxDelaynumberMaximum delay in ms.src/core/RecoveryOrchestrator.ts:64

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency