RetryConfig interface

Describes the parameters that need to be configured for the retry operation.

Properties

connectionHost

The host "<yournamespace>.servicebus.windows.net". Used to check network connectivity.

connectionId

The connection identifier. Used in logging information. Extremely useful when multiple connections are logged in the same file.

delayInSeconds

Amount of time to wait in seconds before making the next attempt. Default: 15.

operation

The operation that needs to be retried.

operationType

The name/type of operation to be performed. Extremely useful in providing better debug logs.

times

Number of times the operation needs to be retried in case of error. Default: 3.

Property Details

connectionHost

The host "<yournamespace>.servicebus.windows.net". Used to check network connectivity.

connectionHost?: string

Property Value

string

connectionId

The connection identifier. Used in logging information. Extremely useful when multiple connections are logged in the same file.

connectionId: string

Property Value

string

delayInSeconds

Amount of time to wait in seconds before making the next attempt. Default: 15.

delayInSeconds?: number

Property Value

number

operation

The operation that needs to be retried.

operation: () => Promise<T>

Property Value

() => Promise<T>

operationType

The name/type of operation to be performed. Extremely useful in providing better debug logs.

operationType: RetryOperationType

Property Value

times

Number of times the operation needs to be retried in case of error. Default: 3.

times?: number

Property Value

number