Interface RetryPolicy

  • All Known Implementing Classes:
    RetryPolicy.FixedRetryPolicy

    @Internal
    public interface RetryPolicy
    Retry policy to use by RetryingExecutor.
    • 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)