C# 클래스 Spring.Retry.Retry.Backoff.ExponentialRandomBackOffPolicy

Implementation of {@link org.springframework.retry.backoff.ExponentialBackOffPolicy} that chooses a random multiple of the interval. The random multiple is selected based on how many iterations have occurred. This has shown to at least be useful in testing scenarios where excessive contention is generated by the test needing many retries. In test, usually threads are started at the same time, and thus stomp together onto the next interval. Using this {@link BackOffPolicy} can help avoid that scenario. Example: initialInterval = 50 multiplier = 2.0 maxInterval = 3000 numRetries = 5 ExponentialBackOffPolicy yields: [50, 100, 200, 400, 800] ExponentialRandomBackOffPolicy may yield [50, 100, 100, 100, 600] or [50, 100, 150, 400, 800]
상속: ExponentialBackOffPolicy
파일 보기 프로젝트 열기: spring-projects/spring-net-retry

공개 메소드들

메소드 설명
Start ( IRetryContext context ) : IBackOffContext

Returns a new instance of IBackOffContext, seeded with this policy's settings.

보호된 메소드들

메소드 설명
NewInstance ( ) : ExponentialBackOffPolicy

The new instance.

메소드 상세

NewInstance() 보호된 메소드

The new instance.
protected NewInstance ( ) : ExponentialBackOffPolicy
리턴 ExponentialBackOffPolicy

Start() 공개 메소드

Returns a new instance of IBackOffContext, seeded with this policy's settings.
public Start ( IRetryContext context ) : IBackOffContext
context IRetryContext The context.
리턴 IBackOffContext