Uses of Interface
io.smallrye.faulttolerance.api.Guard.Builder.RetryBuilder
-
Uses of Guard.Builder.RetryBuilder in io.smallrye.faulttolerance.api
Methods in io.smallrye.faulttolerance.api that return Guard.Builder.RetryBuilderModifier and TypeMethodDescriptionEquivalent toabortOn(Collections.singleton(value)).Guard.Builder.RetryBuilder.abortOn(Collection<Class<? extends Throwable>> value) Sets the set of exception types considered success.Guard.Builder.RetryBuilder.beforeRetry(Runnable value) Sets a before retry handler, which is called before each retry, but not before the original attempt.Guard.Builder.RetryBuilder.beforeRetry(Consumer<Throwable> value) Sets a before retry handler, which is called before each retry, but not before the original attempt.Guard.Builder.RetryBuilder.delay(long value, ChronoUnit unit) Sets the delay between retries.Guard.Builder.RetryBuilder.CustomBackoffBuilder.done()Returns the original retry builder.Guard.Builder.RetryBuilder.ExponentialBackoffBuilder.done()Returns the original retry builder.Guard.Builder.RetryBuilder.FibonacciBackoffBuilder.done()Returns the original retry builder.Guard.Builder.RetryBuilder.jitter(long value, ChronoUnit unit) Sets the jitter bound.Guard.Builder.RetryBuilder.maxDuration(long value, ChronoUnit unit) Sets the maximum duration of all invocations, including possible retries.Guard.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(Collections.singleton(value)).Guard.Builder.RetryBuilder.retryOn(Collection<Class<? extends Throwable>> value) Sets the set of exception types considered failure.Guard.Builder.RetryBuilder.whenException(Predicate<Throwable> value) Sets a predicate to determine when an exception should be considered failure and retry should be attempted.Guard.Builder.RetryBuilder.whenResult(Predicate<Object> value) Sets a predicate to determine when a result should be considered failure and retry should be attempted.default Guard.Builder.RetryBuilderGuard.Builder.RetryBuilder.with(Consumer<Guard.Builder.RetryBuilder> consumer) Guard.Builder.withRetry()Adds a retry strategy.Method parameters in io.smallrye.faulttolerance.api with type arguments of type Guard.Builder.RetryBuilderModifier and TypeMethodDescriptiondefault Guard.Builder.RetryBuilderGuard.Builder.RetryBuilder.with(Consumer<Guard.Builder.RetryBuilder> consumer)