Uses of Interface
io.smallrye.faulttolerance.api.TypedGuard.Builder.RetryBuilder
-
Uses of TypedGuard.Builder.RetryBuilder in io.smallrye.faulttolerance.api
Methods in io.smallrye.faulttolerance.api that return TypedGuard.Builder.RetryBuilderModifier and TypeMethodDescriptionEquivalent toabortOn(Set.of(value)).TypedGuard.Builder.RetryBuilder.abortOn(Collection<Class<? extends Throwable>> value) Sets the set of exception types considered success.TypedGuard.Builder.RetryBuilder.beforeRetry(Runnable value) Sets a before retry handler, which is called before each retry, but not before the original attempt.TypedGuard.Builder.RetryBuilder.beforeRetry(Consumer<Throwable> value) Sets a before retry handler, which is called before each retry, but not before the original attempt.TypedGuard.Builder.RetryBuilder.delay(long value, ChronoUnit unit) Sets the delay between retries.TypedGuard.Builder.RetryBuilder.CustomBackoffBuilder.done()Returns the original retry builder.TypedGuard.Builder.RetryBuilder.ExponentialBackoffBuilder.done()Returns the original retry builder.TypedGuard.Builder.RetryBuilder.FibonacciBackoffBuilder.done()Returns the original retry builder.TypedGuard.Builder.RetryBuilder.jitter(long value, ChronoUnit unit) Sets the jitter bound.TypedGuard.Builder.RetryBuilder.maxDuration(long value, ChronoUnit unit) Sets the maximum duration of all invocations, including possible retries.TypedGuard.Builder.RetryBuilder.maxRetries(int value) Sets the maximum number of retries.Sets a callback that will be invoked when this retry strategy treats a finished invocation as failure, and no more retries will be attempted.Sets a callback that will be invoked when a retry is attempted.Sets a callback that will be invoked when this retry strategy treats a finished invocation as success, regardless of whether a retry was attempted or not.Equivalent toretryOn(Set.of(value)).TypedGuard.Builder.RetryBuilder.retryOn(Collection<Class<? extends Throwable>> value) Sets the set of exception types considered failure.TypedGuard.Builder.RetryBuilder.whenException(Predicate<Throwable> value) Sets a predicate to determine when an exception should be considered failure and retry should be attempted.TypedGuard.Builder.RetryBuilder.whenResult(Predicate<Object> value) Sets a predicate to determine when a result should be considered failure and retry should be attempted.default TypedGuard.Builder.RetryBuilder<T> TypedGuard.Builder.RetryBuilder.with(Consumer<TypedGuard.Builder.RetryBuilder<T>> consumer) TypedGuard.Builder.withRetry()Adds a retry strategy.Method parameters in io.smallrye.faulttolerance.api with type arguments of type TypedGuard.Builder.RetryBuilderModifier and TypeMethodDescriptiondefault TypedGuard.Builder.RetryBuilder<T> TypedGuard.Builder.RetryBuilder.with(Consumer<TypedGuard.Builder.RetryBuilder<T>> consumer)