Uses of Interface
dev.failsafe.function.ContextualSupplier
Packages that use ContextualSupplier
-
Uses of ContextualSupplier in dev.failsafe
Fields in dev.failsafe declared as ContextualSupplierModifier and TypeFieldDescription(package private) ContextualSupplier
<R, Duration> DelayablePolicyConfig.delayFn
Methods in dev.failsafe that return ContextualSupplierModifier and TypeMethodDescriptionDelayablePolicyConfig.getDelayFn()
Returns the function that determines the next delay before another execution can be performed.(package private) static ContextualSupplier
<Void, Void> Functions.toCtxSupplier
(CheckedRunnable runnable) (package private) static <R,
T> ContextualSupplier <R, T> Functions.toCtxSupplier
(CheckedSupplier<T> supplier) (package private) static ContextualSupplier
<Void, Void> Functions.toCtxSupplier
(ContextualRunnable<Void> runnable) (package private) static <R,
T> ContextualSupplier <R, T> Functions.withExecutor
(ContextualSupplier<R, T> supplier, Executor executor) Methods in dev.failsafe with parameters of type ContextualSupplierModifier and TypeMethodDescriptionprivate <T> T
FailsafeExecutor.call
(ContextualSupplier<T, T> innerSupplier) Calls theinnerSupplier
synchronously, handling results according to the configured policies.private <T> Call
<T> FailsafeExecutor.callSync
(ContextualSupplier<T, T> innerSupplier) Returns a Call that calls theinnerSupplier
synchronously, handling results according to the configured policies.<T extends R>
TFailsafeExecutor.get
(ContextualSupplier<T, T> supplier) Executes thesupplier
until a successful result is returned or the configured policies are exceeded.(package private) static <R> Function
<SyncExecutionImpl<R>, ExecutionResult<R>> Functions.get
(ContextualSupplier<R, R> supplier, Executor executor) Returns a Supplier for synchronous executions that pre-executes theexecution
, applies thesupplier
, records the result and returns the result.<T extends R>
CompletableFuture<T> FailsafeExecutor.getAsync
(ContextualSupplier<T, T> supplier) Executes thesupplier
asynchronously until a successful result is returned or the configured policies are exceeded.(package private) static <R> Function
<AsyncExecutionInternal<R>, CompletableFuture<ExecutionResult<R>>> Functions.getPromise
(ContextualSupplier<R, R> supplier, Executor executor) Returns a Function for asynchronous executions that pre-executes theexecution
, applies thesupplier
, records the result and returns a promise containing the result.(package private) static <R> Function
<AsyncExecutionInternal<R>, CompletableFuture<ExecutionResult<R>>> Functions.getPromiseOfStage
(ContextualSupplier<R, ? extends CompletionStage<? extends R>> supplier, FailsafeFuture<R> future, Executor executor) Returns a Function that for asynchronous executions that pre-executes theexecution
, applies thesupplier
, records the result and returns a promise containing the result.<T extends R>
CompletableFuture<T> FailsafeExecutor.getStageAsync
(ContextualSupplier<T, ? extends CompletionStage<T>> supplier) Executes thesupplier
asynchronously until the resulting future is successfully completed or the configured policies are exceeded.FailsafeExecutor.newCall
(ContextualSupplier<T, T> supplier) Returns a call that can execute thesupplier
until a successful result is returned or the configured policies are exceeded.DelayablePolicyBuilder.withDelayFn
(ContextualSupplier<R, Duration> delayFunction) Sets thedelayFunction
that computes the next delay before allowing another execution.DelayablePolicyBuilder.withDelayFnOn
(ContextualSupplier<R, Duration> delayFunction, Class<F> exception) Sets thedelayFunction
that computes the next delay before allowing another execution.DelayablePolicyBuilder.withDelayFnWhen
(ContextualSupplier<R, Duration> delayFunction, R result) Sets thedelayFunction
that computes the next delay before allowing another execution.(package private) static <R,
T> ContextualSupplier <R, T> Functions.withExecutor
(ContextualSupplier<R, T> supplier, Executor executor)