Class RetryPredicates
java.lang.Object
org.apache.flink.streaming.util.retryable.RetryPredicates
Utility class to create concrete retry predicates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.flink.streaming.util.retryable.RetryPredicates.EmptyResultPredicateA predicate matches empty result which means an emptyCollection.static final org.apache.flink.streaming.util.retryable.RetryPredicates.HasExceptionPredicateA predicate matches any exception which means a non-nullThrowable. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.flink.streaming.util.retryable.RetryPredicates.ExceptionTypePredicatecreateExceptionTypePredicate(Class<? extends Throwable> exceptionClass) Creates a predicate on given exception type.
-
Field Details
-
EMPTY_RESULT_PREDICATE
public static final org.apache.flink.streaming.util.retryable.RetryPredicates.EmptyResultPredicate EMPTY_RESULT_PREDICATEA predicate matches empty result which means an emptyCollection. -
HAS_EXCEPTION_PREDICATE
public static final org.apache.flink.streaming.util.retryable.RetryPredicates.HasExceptionPredicate HAS_EXCEPTION_PREDICATEA 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.
-