C# Класс Spring.Retry.Retry.Backoff.StatelessBackOffPolicy

Simple base class for IBackOffPolicy implementations that maintain no state across invocations.
Наследование: IBackOffPolicy
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
DoBackOff ( ) : void

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

Описание методов

BackOff() публичный Метод

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.
Результат void

DoBackOff() защищенный абстрактный Метод

Sub-classes should implement this method to perform the actual back off.
protected abstract DoBackOff ( ) : void
Результат void

Start() публичный Метод

Returns null. Subclasses can add behaviour, e.g. * initial sleep before first attempt.
public Start ( IRetryContext context ) : IBackOffContext
context IRetryContext The context.
Результат IBackOffContext