Uses of Interface
io.smallrye.faulttolerance.api.TypedGuard.Builder.RateLimitBuilder
-
Uses of TypedGuard.Builder.RateLimitBuilder in io.smallrye.faulttolerance.api
Methods in io.smallrye.faulttolerance.api that return TypedGuard.Builder.RateLimitBuilderModifier and TypeMethodDescriptionTypedGuard.Builder.RateLimitBuilder.limit(int value) Sets the maximum number of invocations in a time window.TypedGuard.Builder.RateLimitBuilder.minSpacing(long value, ChronoUnit unit) Sets the minimum spacing between invocations.TypedGuard.Builder.RateLimitBuilder.onPermitted(Runnable callback) Sets a callback that will be invoked when this rate limit permits an invocation.TypedGuard.Builder.RateLimitBuilder.onRejected(Runnable callback) Sets a callback that will be invoked when this rate limit rejects an invocation.TypedGuard.Builder.RateLimitBuilder.type(RateLimitType value) Sets the type of time windows used for rate limiting.TypedGuard.Builder.RateLimitBuilder.window(long value, ChronoUnit unit) Sets the time window length.default TypedGuard.Builder.RateLimitBuilder<T> TypedGuard.Builder.RateLimitBuilder.with(Consumer<TypedGuard.Builder.RateLimitBuilder<T>> consumer) TypedGuard.Builder.withRateLimit()Adds a rate limit strategy.Method parameters in io.smallrye.faulttolerance.api with type arguments of type TypedGuard.Builder.RateLimitBuilderModifier and TypeMethodDescriptiondefault TypedGuard.Builder.RateLimitBuilder<T> TypedGuard.Builder.RateLimitBuilder.with(Consumer<TypedGuard.Builder.RateLimitBuilder<T>> consumer)