public class SessionFailedRetryPolicy extends Object implements RetryPolicy
RetryPolicy implementation that failed on session expired.| Constructor and Description |
|---|
SessionFailedRetryPolicy(RetryPolicy delegatePolicy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowRetry(int retryCount,
long elapsedTimeMs,
RetrySleeper sleeper)
Called when an operation has failed for some reason.
|
boolean |
allowRetry(Throwable exception)
Called when an operation has failed with a specific exception.
|
public SessionFailedRetryPolicy(RetryPolicy delegatePolicy)
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.sleeppublic boolean allowRetry(Throwable exception)
RetryPolicyallowRetry in interface RetryPolicyexception - the cause that this operation failedCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.