public class RetryPredicates extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.flink.streaming.util.retryable.RetryPredicates.EmptyResultPredicate |
EMPTY_RESULT_PREDICATE
A predicate matches empty result which means an empty
Collection . |
static org.apache.flink.streaming.util.retryable.RetryPredicates.HasExceptionPredicate |
HAS_EXCEPTION_PREDICATE
A predicate matches any exception which means a non-null
Throwable . |
Constructor and Description |
---|
RetryPredicates() |
Modifier and Type | Method and Description |
---|---|
static org.apache.flink.streaming.util.retryable.RetryPredicates.ExceptionTypePredicate |
createExceptionTypePredicate(Class<? extends Throwable> exceptionClass)
Creates a predicate on given exception type.
|
public static final org.apache.flink.streaming.util.retryable.RetryPredicates.EmptyResultPredicate EMPTY_RESULT_PREDICATE
Collection
.public static final org.apache.flink.streaming.util.retryable.RetryPredicates.HasExceptionPredicate HAS_EXCEPTION_PREDICATE
Throwable
.public static org.apache.flink.streaming.util.retryable.RetryPredicates.ExceptionTypePredicate createExceptionTypePredicate(@Nonnull Class<? extends Throwable> exceptionClass)
exceptionClass
- Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.