Uses of Interface
dev.failsafe.function.ContextualSupplier
Packages that use ContextualSupplier
-
Uses of ContextualSupplier in dev.failsafe
Methods in dev.failsafe that return ContextualSupplierModifier and TypeMethodDescriptionDelayablePolicyConfig.getDelayFn()Returns the function that determines the next delay before another execution can be performed.Methods in dev.failsafe with parameters of type ContextualSupplierModifier and TypeMethodDescription<T extends R>
TFailsafeExecutor.get(ContextualSupplier<T, T> supplier) Executes thesupplieruntil a successful result is returned or the configured policies are exceeded.<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.<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.