Class AsyncRetryStrategies.FixedDelayRetryStrategy<OUT>
java.lang.Object
org.apache.flink.streaming.util.retryable.AsyncRetryStrategies.FixedDelayRetryStrategy<OUT>
- All Implemented Interfaces:
Serializable,AsyncRetryStrategy<OUT>
- Enclosing class:
- AsyncRetryStrategies
public static class AsyncRetryStrategies.FixedDelayRetryStrategy<OUT>
extends Object
implements AsyncRetryStrategy<OUT>
FixedDelayRetryStrategy.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanRetry(int currentAttempts) longgetBackoffTimeMillis(int currentAttempts)
-
Method Details
-
canRetry
public boolean canRetry(int currentAttempts) - Specified by:
canRetryin interfaceAsyncRetryStrategy<OUT>- Returns:
- whether the next attempt can happen
-
getRetryPredicate
- Specified by:
getRetryPredicatein interfaceAsyncRetryStrategy<OUT>- Returns:
- the defined retry predicate
AsyncRetryPredicate
-
getBackoffTimeMillis
public long getBackoffTimeMillis(int currentAttempts) - Specified by:
getBackoffTimeMillisin interfaceAsyncRetryStrategy<OUT>- Returns:
- the delay time of next attempt
-