Package org.apache.flink.changelog.fs
Interface RetryPolicy
- All Known Implementing Classes:
RetryPolicy.FixedRetryPolicy
@Internal
public interface RetryPolicy
Retry policy to use by
RetryingExecutor.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classRetryPolicywith fixed timeout, delay and max attempts. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RetryPolicyfixed(int maxAttempts, long timeout, long delayAfterFailure) static RetryPolicyfromConfig(org.apache.flink.configuration.ReadableConfig config) longretryAfter(int failedAttempt, Exception exception) longtimeoutFor(int attempt)
-
Field Details
-
NONE
-
-
Method Details
-
fromConfig
-
timeoutFor
long timeoutFor(int attempt) - Returns:
- timeout in millis. Zero or negative means no timeout.
-
retryAfter
- Returns:
- delay in millis before the next attempt. Negative means no retry, zero means no delay.
-
fixed
-