The RetryableAction type exposes the following members.

Properties

  NameDescription
Public propertyAction
The Action to execute
Public propertyDelay
The number of milliseconds to wait between retries.

Remarks

The delay period is approximate and will be affected by the demands of other threads on the system.
Public propertyDelayMultiplier
A factor by which the delay is adjusted after each retry. Default is 1.

Remarks

To double the delay with every retry use a factor of 2, retrys will be 1s, 2s, 4s, 8s...

Remarks

To quarter the delay with every retry use a factor of 0.25, retrys will be 1s, 0.25, 0.0625, 0.015625s...
Public propertyDescription
A message describing the action. The primary purpose is to make the action identifiable in the log output.
Public propertyMaxRetries
The maximum number of retries to attempt
Public propertyStatic memberSleepAction
Method that allows thread to sleep until next retry meant for unit testing purposes

See Also