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.delayFnMethods 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> TFailsafeExecutor.call(ContextualSupplier<T, T> innerSupplier) Calls theinnerSuppliersynchronously, handling results according to the configured policies.private <T> Call<T> FailsafeExecutor.callSync(ContextualSupplier<T, T> innerSupplier) Returns a Call that calls theinnerSuppliersynchronously, handling results according to the configured policies.<T extends R>
TFailsafeExecutor.get(ContextualSupplier<T, T> supplier) Executes thesupplieruntil 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 thesupplierasynchronously 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 thesupplierasynchronously 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 thesupplieruntil a successful result is returned or the configured policies are exceeded.DelayablePolicyBuilder.withDelayFn(ContextualSupplier<R, Duration> delayFunction) Sets thedelayFunctionthat computes the next delay before allowing another execution.DelayablePolicyBuilder.withDelayFnOn(ContextualSupplier<R, Duration> delayFunction, Class<F> exception) Sets thedelayFunctionthat computes the next delay before allowing another execution.DelayablePolicyBuilder.withDelayFnWhen(ContextualSupplier<R, Duration> delayFunction, R result) Sets thedelayFunctionthat computes the next delay before allowing another execution.(package private) static <R,T> ContextualSupplier <R, T> Functions.withExecutor(ContextualSupplier<R, T> supplier, Executor executor)