RetryPolicypublic class RetryForever extends java.lang.Object implements RetryPolicy
RetryPolicy implementation that always allowsRetry.| Constructor | Description |
|---|---|
RetryForever(int retryIntervalMs) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allowRetry(int retryCount,
long elapsedTimeMs,
RetrySleeper sleeper) |
Called when an operation has failed for some reason.
|
public boolean allowRetry(int retryCount,
long elapsedTimeMs,
RetrySleeper sleeper)
RetryPolicyallowRetry in interface RetryPolicyretryCount - the number of times retried so far (0 the first time)elapsedTimeMs - the elapsed time in ms since the operation was attemptedsleeper - use this to sleep - DO NOT call Thread.sleepCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.