Package org.apache.flink.changelog.fs
Class RetryPolicy.FixedRetryPolicy
java.lang.Object
org.apache.flink.changelog.fs.RetryPolicy.FixedRetryPolicy
- All Implemented Interfaces:
RetryPolicy
- Enclosing interface:
- RetryPolicy
RetryPolicy with fixed timeout, delay and max attempts.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.changelog.fs.RetryPolicy
RetryPolicy.FixedRetryPolicy -
Field Summary
Fields inherited from interface org.apache.flink.changelog.fs.RetryPolicy
NONE -
Method Summary
Modifier and TypeMethodDescriptionlongretryAfter(int attempt, Exception exception) longtimeoutFor(int attempt) toString()
-
Method Details
-
timeoutFor
public long timeoutFor(int attempt) - Specified by:
timeoutForin interfaceRetryPolicy- Returns:
- timeout in millis. Zero or negative means no timeout.
-
retryAfter
- Specified by:
retryAfterin interfaceRetryPolicy- Returns:
- delay in millis before the next attempt. Negative means no retry, zero means no delay.
-
toString
-