C# Class Spring.Retry.Retry.Backoff.StatelessBackOffPolicy

Simple base class for IBackOffPolicy implementations that maintain no state across invocations.
Inheritance: IBackOffPolicy
Afficher le fichier Open project: spring-projects/spring-net-retry

Méthodes publiques

Méthode Description
BackOff ( IBackOffContext backOffContext ) : void

Delegates directly to the DoBackOff method without passing on the IBackOffContext argument which is not needed for stateless implementations.

Start ( IRetryContext context ) : IBackOffContext

Returns null. Subclasses can add behaviour, e.g. * initial sleep before first attempt.

Méthodes protégées

Méthode Description
DoBackOff ( ) : void

Sub-classes should implement this method to perform the actual back off.

Method Details

BackOff() public méthode

Delegates directly to the DoBackOff method without passing on the IBackOffContext argument which is not needed for stateless implementations.
public BackOff ( IBackOffContext backOffContext ) : void
backOffContext IBackOffContext The back off context.
Résultat void

DoBackOff() protected abstract méthode

Sub-classes should implement this method to perform the actual back off.
protected abstract DoBackOff ( ) : void
Résultat void

Start() public méthode

Returns null. Subclasses can add behaviour, e.g. * initial sleep before first attempt.
public Start ( IRetryContext context ) : IBackOffContext
context IRetryContext The context.
Résultat IBackOffContext