Class RetryExecutor<T,E extends Exception>
java.lang.Object
jdk.jpackage.internal.util.RetryExecutor<T,E>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()final Tfinal RetryExecutor<T, E> mutate(Consumer<RetryExecutor<T, E>> mutator) final RetryExecutor<T, E> setAttemptTimeout(long v, TimeUnit unit) final RetryExecutor<T, E> setMaxAttemptsCount(int v)
-
Constructor Details
-
RetryExecutor
-
-
Method Details
-
exceptionType
-
setExecutable
public RetryExecutor<T,E> setExecutable(ThrowingFunction<RetryExecutor.Context<RetryExecutor<T, E>>, T, E> v) -
setExecutable
-
setMaxAttemptsCount
-
setAttemptTimeout
-
setAttemptTimeout
-
setExceptionMapper
-
setSleepFunction
-
mutate
-
execute
- Throws:
E
-
executeUnchecked
-