public interface RetryPolicy extends DelayPolicy
Modifier and Type | Method and Description |
---|---|
boolean |
isRetriable(int numAttempts,
long firstAttemptTimestamp)
Determines whether a retry should be attempted.
|
getDelay, toString
boolean isRetriable(int numAttempts, long firstAttemptTimestamp)
numAttempts
- -
the number of previous attempts (including first attempt and
previous retries); assumed to be equal or more than 1firstAttemptTimestamp
- -
the timestamp (milliseconds since epoch) of the first attempt
to process the message; may be less than 0 if information not
availabletrue
if a retry should be attempted; otherwise,
false