public class BackOffException extends Exception
AbstractBackOffStrategy has attempted to
backOff() more than the AbstractBackOffStrategy was configured for.| Constructor and Description |
|---|
BackOffException() |
BackOffException(int attemptCount,
long maxSleepTime) |
BackOffException(String message) |
BackOffException(String message,
int attemptCount,
long maxSleepTime)
BackOffException constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLongestBackOff()
Gets the longest sleep period that the strategy attempted.
|
int |
getNumberOfBackOffsAttempted()
Gets the number of back off attempts that happened before the exception was thrown.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BackOffException()
public BackOffException(String message)
public BackOffException(int attemptCount,
long maxSleepTime)
public BackOffException(String message, int attemptCount, long maxSleepTime)
message - messageattemptCount - attemptCountmaxSleepTime - maxSleepTime (in millis)public int getNumberOfBackOffsAttempted()
public long getLongestBackOff()
Copyright © 2020 The Apache Software Foundation. All rights reserved.