Uses of Interface
dev.failsafe.function.CheckedRunnable
Packages that use CheckedRunnable
-
Uses of CheckedRunnable in dev.failsafe
Methods in dev.failsafe with parameters of type CheckedRunnableModifier and TypeMethodDescriptionstatic <R> FallbackBuilder<R> Fallback.builder(CheckedRunnable fallback) Returns thefallbackto be executed if execution fails.static <R> Fallback<R> Fallback.of(CheckedRunnable fallback) Returns thefallbackto be executed if execution fails.voidExecutionContext.onCancel(CheckedRunnable cancelCallback) Sets thecancelCallbackto be called if the execution is cancelled, such as by the resultingCallorCompletableFuture, or aTimeout.voidFailsafeExecutor.run(CheckedRunnable runnable) Executes therunnableuntil successful or until the configured policies are exceeded.FailsafeExecutor.runAsync(CheckedRunnable runnable) Executes therunnableasynchronously until successful or until the configured policies are exceeded.