Class RetryPredicates

java.lang.Object
org.apache.flink.streaming.util.retryable.RetryPredicates

public class RetryPredicates extends Object
Utility class to create concrete retry predicates.
  • Field Details

    • EMPTY_RESULT_PREDICATE

      public static final org.apache.flink.streaming.util.retryable.RetryPredicates.EmptyResultPredicate EMPTY_RESULT_PREDICATE
      A predicate matches empty result which means an empty Collection.
    • HAS_EXCEPTION_PREDICATE

      public static final org.apache.flink.streaming.util.retryable.RetryPredicates.HasExceptionPredicate HAS_EXCEPTION_PREDICATE
      A predicate matches any exception which means a non-nullThrowable.
  • Constructor Details

    • RetryPredicates

      public RetryPredicates()
  • Method Details

    • createExceptionTypePredicate

      public static org.apache.flink.streaming.util.retryable.RetryPredicates.ExceptionTypePredicate createExceptionTypePredicate(@Nonnull Class<? extends Throwable> exceptionClass)
      Creates a predicate on given exception type.
      Parameters:
      exceptionClass -
      Returns:
      predicate on exception type.