Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RetryStrategy

Defines a retry strategy.

A retry strategy will be applied when an initial to attempt to open a session fails with a transient session establishment exception.

A retry strategy will be applied when recovering by a RecoverableUpdateStream following a recoverable exception.

The strategy is defined in terms of the number of milliseconds between retries and the maximum number of retries to attempt.

If no properties are defined, it means that no retries will be attempted.

If interval is defined but attempts is not, it means that unlimited retries will be attempted.

since

6.10

Hierarchy

  • RetryStrategy

Index

Properties

Properties

Optional attempts

attempts: undefined | number

The number of retry attempts

Optional interval

interval: undefined | number

The number of milliseconds before the first retry and between subsequent retries