Uses of Interface
io.smallrye.faulttolerance.api.FaultTolerance.Builder
-
Uses of FaultTolerance.Builder in io.smallrye.faulttolerance.api
Methods in io.smallrye.faulttolerance.api that return FaultTolerance.BuilderModifier and TypeMethodDescriptionstatic <T> FaultTolerance.Builder<T, FaultTolerance<T>> FaultTolerance.create()Returns a builder that, at the end, returns aFaultToleranceobject representing a set of configured fault tolerance strategies.static <T> FaultTolerance.Builder<CompletionStage<T>, FaultTolerance<CompletionStage<T>>> FaultTolerance.createAsync()Returns a builder that, at the end, returns aFaultToleranceobject representing a set of configured fault tolerance strategies.static <T> FaultTolerance.Builder<CompletionStage<T>, Callable<CompletionStage<T>>> FaultTolerance.createAsyncCallable(Callable<CompletionStage<T>> action) Returns a builder that, at the end, returns aCallableguarding the givenaction.FaultTolerance.createAsyncRunnable(Runnable action) Returns a builder that, at the end, returns aRunnableguarding the givenaction.static <T> FaultTolerance.Builder<CompletionStage<T>, Supplier<CompletionStage<T>>> FaultTolerance.createAsyncSupplier(Supplier<CompletionStage<T>> action) Returns a builder that, at the end, returns aSupplierguarding the givenaction.static <T> FaultTolerance.Builder<T, Callable<T>> FaultTolerance.createCallable(Callable<T> action) Returns a builder that, at the end, returns aCallableguarding the givenaction.static FaultTolerance.Builder<Void, Runnable> FaultTolerance.createRunnable(Runnable action) Returns a builder that, at the end, returns aRunnableguarding the givenaction.static <T> FaultTolerance.Builder<T, Supplier<T>> FaultTolerance.createSupplier(Supplier<T> action) Returns a builder that, at the end, returns aSupplierguarding the givenaction.FaultTolerance.Builder.BulkheadBuilder.done()Returns the original fault tolerance builder.FaultTolerance.Builder.CircuitBreakerBuilder.done()Returns the original fault tolerance builder.FaultTolerance.Builder.FallbackBuilder.done()Returns the original fault tolerance builder.FaultTolerance.Builder.RateLimitBuilder.done()Returns the original fault tolerance builder.FaultTolerance.Builder.RetryBuilder.done()Returns the original fault tolerance builder.FaultTolerance.Builder.TimeoutBuilder.done()Returns the original fault tolerance builder.<T,R> FaultTolerance.Builder <T, R> FaultToleranceSpi.newAsyncBuilder(Class<?> asyncType, Function<FaultTolerance<T>, R> finisher) <T,R> FaultTolerance.Builder <T, R> FaultToleranceSpi.newBuilder(Function<FaultTolerance<T>, R> finisher) default FaultTolerance.Builder<T, R> FaultTolerance.Builder.with(Consumer<FaultTolerance.Builder<T, R>> consumer) Syntactic sugar for calling the builder methods conditionally without breaking the invocation chain.FaultTolerance.Builder.withDescription(String value) Assigns a description to the resulting set of configured fault tolerance strategies.FaultTolerance.Builder.withThreadOffload(boolean value) Configures whether the guarded action should be offloaded to another thread.FaultTolerance.Builder.withThreadOffloadExecutor(Executor executor) Configures the executor to use when offloading the guarded action to another thread.Method parameters in io.smallrye.faulttolerance.api with type arguments of type FaultTolerance.BuilderModifier and TypeMethodDescriptiondefault FaultTolerance.Builder<T, R> FaultTolerance.Builder.with(Consumer<FaultTolerance.Builder<T, R>> consumer) Syntactic sugar for calling the builder methods conditionally without breaking the invocation chain.