Class RetryPolicy.FixedRetryPolicy

java.lang.Object
org.apache.flink.changelog.fs.RetryPolicy.FixedRetryPolicy
All Implemented Interfaces:
RetryPolicy
Enclosing interface:
RetryPolicy

public static class RetryPolicy.FixedRetryPolicy extends Object implements RetryPolicy
RetryPolicy with fixed timeout, delay and max attempts.
  • Method Details

    • timeoutFor

      public long timeoutFor(int attempt)
      Specified by:
      timeoutFor in interface RetryPolicy
      Returns:
      timeout in millis. Zero or negative means no timeout.
    • retryAfter

      public long retryAfter(int attempt, Exception exception)
      Specified by:
      retryAfter in interface RetryPolicy
      Returns:
      delay in millis before the next attempt. Negative means no retry, zero means no delay.
    • toString

      public String toString()
      Overrides:
      toString in class Object