Package org.burningwave.core.function
Interface Executor
public interface Executor
-
Method Summary
Static Methods Modifier and Type Method Description static <T, E extends Throwable>
Tget(ThrowingSupplier<T,? extends E> supplier)static <T, E extends Throwable>
Tget(ThrowingSupplier<T,? extends E> supplier, int attemptsNumber)static <E extends Throwable>
voidrun(ThrowingRunnable<E> runnable)static <E extends Throwable>
voidrun(ThrowingRunnable<E> runnable, int attemptsNumber)static <E extends Throwable>
voidrunAndIgnoreExceptions(ThrowingRunnable<? extends Throwable>... runnables)static <E extends Throwable>
voidrunAndLogExceptions(ThrowingRunnable<? extends Throwable>... runnables)
-
Method Details
-
runAndLogExceptions
@SafeVarargs static <E extends Throwable> void runAndLogExceptions(ThrowingRunnable<? extends Throwable>... runnables) -
runAndIgnoreExceptions
@SafeVarargs static <E extends Throwable> void runAndIgnoreExceptions(ThrowingRunnable<? extends Throwable>... runnables) -
run
-
run
-
get
-
get
static <T, E extends Throwable> T get(ThrowingSupplier<T,? extends E> supplier, int attemptsNumber)
-