C# Class Spring.Retry.Retry.Backoff.FixedBackOffPolicy

Implementation of IBackOffPolicy that pauses for a fixed period of time before continuing. A pause is implemented using Thread.Sleep(int). BackOffPeriod is thread-safe and it is safe to set BackOffPeriod during execution from multiple threads, however this may cause a single retry operation to have pauses of different intervals.
Inheritance: StatelessBackOffPolicy, ISleepingBackOffPolicy
ファイルを表示 Open project: spring-projects/spring-net-retry Class Usage Examples

Public Methods

Method Description
ToString ( ) : string

The to string.

WithSleeper ( ISleeper sleeper ) : ISleepingBackOffPolicy

The with sleeper.

Protected Methods

Method Description
DoBackOff ( ) : void

Pause for the BackOffPeriod.

Method Details

DoBackOff() protected method

Pause for the BackOffPeriod.
protected DoBackOff ( ) : void
return void

ToString() public method

The to string.
public ToString ( ) : string
return string

WithSleeper() public method

The with sleeper.
public WithSleeper ( ISleeper sleeper ) : ISleepingBackOffPolicy
sleeper ISleeper The sleeper.
return ISleepingBackOffPolicy