Uses of Interface
io.smallrye.faulttolerance.api.TypedGuard.Builder.FallbackBuilder
-
Uses of TypedGuard.Builder.FallbackBuilder in io.smallrye.faulttolerance.api
Methods in io.smallrye.faulttolerance.api that return TypedGuard.Builder.FallbackBuilderModifier and TypeMethodDescriptionEquivalent toapplyOn(Set.of(value)).TypedGuard.Builder.FallbackBuilder.applyOn(Collection<Class<? extends Throwable>> value) Sets the set of exception types considered failure.Sets the fallback handler in the form of aFunctionthat transforms the exception to the fallback value.Sets the fallback handler in the form of a fallback valueSupplier.Equivalent toskipOn(Set.of(value)).TypedGuard.Builder.FallbackBuilder.skipOn(Collection<Class<? extends Throwable>> value) Sets the set of exception types considered success.Sets a predicate to determine when an exception should be considered failure and fallback should be applied.default TypedGuard.Builder.FallbackBuilder<T> TypedGuard.Builder.FallbackBuilder.with(Consumer<TypedGuard.Builder.FallbackBuilder<T>> consumer) TypedGuard.Builder.withFallback()Adds a fallback strategy.Method parameters in io.smallrye.faulttolerance.api with type arguments of type TypedGuard.Builder.FallbackBuilderModifier and TypeMethodDescriptiondefault TypedGuard.Builder.FallbackBuilder<T> TypedGuard.Builder.FallbackBuilder.with(Consumer<TypedGuard.Builder.FallbackBuilder<T>> consumer)