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
Afficher le fichier Open project: spring-projects/spring-net-retry Class Usage Examples

Méthodes publiques

Méthode Description
ToString ( ) : string

The to string.

WithSleeper ( ISleeper sleeper ) : ISleepingBackOffPolicy

The with sleeper.

Méthodes protégées

Méthode Description
DoBackOff ( ) : void

Pause for the BackOffPeriod.

Method Details

DoBackOff() protected méthode

Pause for the BackOffPeriod.
protected DoBackOff ( ) : void
Résultat void

ToString() public méthode

The to string.
public ToString ( ) : string
Résultat string

WithSleeper() public méthode

The with sleeper.
public WithSleeper ( ISleeper sleeper ) : ISleepingBackOffPolicy
sleeper ISleeper The sleeper.
Résultat ISleepingBackOffPolicy