Interface RetryPolicy

All Known Implementing Classes:
RetryPolicy.FixedRetryPolicy

@Internal public interface RetryPolicy
Retry policy to use by RetryingExecutor.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    RetryPolicy with fixed timeout, delay and max attempts.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RetryPolicy
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fixed(int maxAttempts, long timeout, long delayAfterFailure)
     
    fromConfig(org.apache.flink.configuration.ReadableConfig config)
     
    long
    retryAfter(int failedAttempt, Exception exception)
     
    long
    timeoutFor(int attempt)
     
  • Field Details

  • Method Details

    • 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)