Uses of Interface
dev.failsafe.function.AsyncRunnable
-
Packages that use AsyncRunnable Package Description dev.failsafe APIs for performing failsafe executions. -
-
Uses of AsyncRunnable in dev.failsafe
Methods in dev.failsafe that return AsyncRunnable Modifier and Type Method Description (package private) static <R> AsyncRunnable<R>
Functions. withExecutor(AsyncRunnable<R> runnable, java.util.concurrent.Executor executor)
Methods in dev.failsafe with parameters of type AsyncRunnable Modifier and Type Method Description <T extends R>
java.util.concurrent.CompletableFuture<T>FailsafeExecutor. getAsyncExecution(AsyncRunnable<T> runnable)
This method is intended for integration with asynchronous code.(package private) static <R> java.util.function.Function<AsyncExecutionInternal<R>,java.util.concurrent.CompletableFuture<ExecutionResult<R>>>
Functions. getPromiseExecution(AsyncRunnable<R> runnable, java.util.concurrent.Executor executor)
Returns a Function for asynchronous executions that pre-executes theexecution
, runs therunnable
, and attempts to complete theexecution
if a failure occurs.java.util.concurrent.CompletableFuture<java.lang.Void>
FailsafeExecutor. runAsyncExecution(AsyncRunnable<java.lang.Void> runnable)
This method is intended for integration with asynchronous code.(package private) static <R> AsyncRunnable<R>
Functions. withExecutor(AsyncRunnable<R> runnable, java.util.concurrent.Executor executor)
-