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

Simple base class for IBackOffPolicy implementations that maintain no state across invocations.
Inheritance: IBackOffPolicy
ファイルを表示 Open project: spring-projects/spring-net-retry

Public Methods

Method 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.

Protected Methods

Method Description
DoBackOff ( ) : void

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

Method Details

BackOff() public method

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.
return void

DoBackOff() protected abstract method

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

Start() public method

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