Package org.apache.flink.changelog.fs
Interface RetryPolicy
-
- All Known Implementing Classes:
RetryPolicy.FixedRetryPolicy
@Internal public interface RetryPolicyRetry policy to use byRetryingExecutor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRetryPolicy.FixedRetryPolicyRetryPolicywith fixed timeout, delay and max attempts.
-
Field Summary
Fields Modifier and Type Field Description static RetryPolicyNONE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RetryPolicyfixed(int maxAttempts, long timeout, long delayAfterFailure)static RetryPolicyfromConfig(org.apache.flink.configuration.ReadableConfig config)longretryAfter(int failedAttempt, Exception exception)longtimeoutFor(int attempt)
-
-
-
Field Detail
-
NONE
static final RetryPolicy NONE
-
-
Method Detail
-
fromConfig
static RetryPolicy fromConfig(org.apache.flink.configuration.ReadableConfig config)
-
timeoutFor
long timeoutFor(int attempt)
- Returns:
- timeout in millis. Zero or negative means no timeout.
-
retryAfter
long retryAfter(int failedAttempt, Exception exception)- Returns:
- delay in millis before the next attempt. Negative means no retry, zero means no delay.
-
fixed
static RetryPolicy fixed(int maxAttempts, long timeout, long delayAfterFailure)
-
-