Uses of Interface
io.github.resilience4j.ratelimiter.RateLimiter
Packages that use RateLimiter
-
Uses of RateLimiter in io.github.resilience4j.ratelimiter
Subinterfaces with type arguments of type RateLimiter in io.github.resilience4j.ratelimiterModifier and TypeInterfaceDescriptioninterfaceManages all RateLimiter instances.Fields in io.github.resilience4j.ratelimiter with type parameters of type RateLimiterModifier and TypeFieldDescriptionprivate List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> RateLimiterRegistry.Builder.registryEventConsumersprivate io.github.resilience4j.core.RegistryStore<RateLimiter> RateLimiterRegistry.Builder.registryStoreMethods in io.github.resilience4j.ratelimiter that return RateLimiterModifier and TypeMethodDescriptionstatic RateLimiterRateLimiter.of(String name, RateLimiterConfig rateLimiterConfig) Creates a RateLimiter with a custom RateLimiter configuration.static RateLimiterCreates a RateLimiter with a custom RateLimiter configuration.static RateLimiterRateLimiter.of(String name, Supplier<RateLimiterConfig> rateLimiterConfigSupplier) Creates a RateLimiter with a custom RateLimiterConfig configuration.static RateLimiterRateLimiter.of(String name, Supplier<RateLimiterConfig> rateLimiterConfigSupplier, Map<String, String> tags) Creates a RateLimiter with a custom RateLimiterConfig configuration.static RateLimiterRateLimiter.ofDefaults(String name) Creates a RateLimiter with a default RateLimiterConfig configuration.RateLimiterRegistry.rateLimiter(String name) Returns a managedRateLimiteror creates a new one with the default RateLimiter configuration.RateLimiterRegistry.rateLimiter(String name, RateLimiterConfig rateLimiterConfig) Returns a managedRateLimiteror creates a new one with a custom RateLimiter configuration.RateLimiterRegistry.rateLimiter(String name, RateLimiterConfig rateLimiterConfig, Map<String, String> tags) Returns a managedRateLimiteror creates a new one with a custom RateLimiter configuration.RateLimiterRegistry.rateLimiter(String name, String configName) Returns a managedRateLimiteror creates a new one.Returns a managedRateLimiteror creates a new one.RateLimiterRegistry.rateLimiter(String name, Supplier<RateLimiterConfig> rateLimiterConfigSupplier) Returns a managedRateLimiterConfigor creates a new one with a custom RateLimiterConfig configuration.RateLimiterRegistry.rateLimiter(String name, Supplier<RateLimiterConfig> rateLimiterConfigSupplier, Map<String, String> tags) Returns a managedRateLimiterConfigor creates a new one with a custom RateLimiterConfig configuration.RateLimiterRegistry.rateLimiter(String name, Map<String, String> tags) Returns a managedRateLimiteror creates a new one with the default RateLimiter configuration.Methods in io.github.resilience4j.ratelimiter that return types with arguments of type RateLimiterModifier and TypeMethodDescriptionRateLimiterRegistry.getAllRateLimiters()Returns all managedRateLimiterinstances.Methods in io.github.resilience4j.ratelimiter with parameters of type RateLimiterModifier and TypeMethodDescriptionstatic RequestNotPermittedRequestNotPermitted.createRequestNotPermitted(RateLimiter rateLimiter) Static method to construct aRequestNotPermittedwith a RateLimiter.static <T> Callable<T> RateLimiter.decorateCallable(RateLimiter rateLimiter, int permits, Callable<T> callable) Creates a callable which is restricted by a RateLimiter.static <T> Callable<T> RateLimiter.decorateCallable(RateLimiter rateLimiter, Callable<T> callable) Creates a callable which is restricted by a RateLimiter.static <T,R> io.github.resilience4j.core.functions.CheckedFunction <T, R> RateLimiter.decorateCheckedFunction(RateLimiter rateLimiter, int permits, io.github.resilience4j.core.functions.CheckedFunction<T, R> function) Creates a function which is restricted by a RateLimiter.static <T,R> io.github.resilience4j.core.functions.CheckedFunction <T, R> RateLimiter.decorateCheckedFunction(RateLimiter rateLimiter, io.github.resilience4j.core.functions.CheckedFunction<T, R> function) Creates a function which is restricted by a RateLimiter.static <T,R> io.github.resilience4j.core.functions.CheckedFunction <T, R> RateLimiter.decorateCheckedFunction(RateLimiter rateLimiter, Function<T, Integer> permitsCalculator, io.github.resilience4j.core.functions.CheckedFunction<T, R> function) Creates a function which is restricted by a RateLimiter.static io.github.resilience4j.core.functions.CheckedRunnableRateLimiter.decorateCheckedRunnable(RateLimiter rateLimiter, int permits, io.github.resilience4j.core.functions.CheckedRunnable runnable) Creates a runnable which is restricted by a RateLimiter.static io.github.resilience4j.core.functions.CheckedRunnableRateLimiter.decorateCheckedRunnable(RateLimiter rateLimiter, io.github.resilience4j.core.functions.CheckedRunnable runnable) Creates a runnable which is restricted by a RateLimiter.static <T> io.github.resilience4j.core.functions.CheckedSupplier<T> RateLimiter.decorateCheckedSupplier(RateLimiter rateLimiter, int permits, io.github.resilience4j.core.functions.CheckedSupplier<T> supplier) Creates a supplier which is restricted by a RateLimiter.static <T> io.github.resilience4j.core.functions.CheckedSupplier<T> RateLimiter.decorateCheckedSupplier(RateLimiter rateLimiter, io.github.resilience4j.core.functions.CheckedSupplier<T> supplier) Creates a supplier which is restricted by a RateLimiter.static <T> Supplier<CompletionStage<T>> RateLimiter.decorateCompletionStage(RateLimiter rateLimiter, int permits, Supplier<CompletionStage<T>> supplier) Returns a supplier which is decorated by a rateLimiter.static <T> Supplier<CompletionStage<T>> RateLimiter.decorateCompletionStage(RateLimiter rateLimiter, Supplier<CompletionStage<T>> supplier) Returns a supplier which is decorated by a rateLimiter.static <T> Consumer<T> RateLimiter.decorateConsumer(RateLimiter rateLimiter, int permits, Consumer<T> consumer) Creates a consumer which is restricted by a RateLimiter.static <T> Consumer<T> RateLimiter.decorateConsumer(RateLimiter rateLimiter, Consumer<T> consumer) Creates a consumer which is restricted by a RateLimiter.static <T> Consumer<T> RateLimiter.decorateConsumer(RateLimiter rateLimiter, Function<T, Integer> permitsCalculator, Consumer<T> consumer) Creates a consumer which is restricted by a RateLimiter.static <T,R> Function <T, R> RateLimiter.decorateFunction(RateLimiter rateLimiter, int permits, Function<T, R> function) Creates a function which is restricted by a RateLimiter.static <T,R> Function <T, R> RateLimiter.decorateFunction(RateLimiter rateLimiter, Function<T, Integer> permitsCalculator, Function<T, R> function) Creates a function which is restricted by a RateLimiter.static <T,R> Function <T, R> RateLimiter.decorateFunction(RateLimiter rateLimiter, Function<T, R> function) Creates a function which is restricted by a RateLimiter.RateLimiter.decorateFuture(RateLimiter rateLimiter, int permits, Supplier<? extends F> supplier) Returns a Supplier which is decorated by a RateLimiter.RateLimiter.decorateFuture(RateLimiter rateLimiter, Supplier<? extends F> supplier) Returns a Supplier which is decorated by a RateLimiter.static RunnableRateLimiter.decorateRunnable(RateLimiter rateLimiter, int permits, Runnable runnable) Creates a runnable which is restricted by a RateLimiter.static RunnableRateLimiter.decorateRunnable(RateLimiter rateLimiter, Runnable runnable) Creates a runnable which is restricted by a RateLimiter.static <T> Supplier<T> RateLimiter.decorateSupplier(RateLimiter rateLimiter, int permits, Supplier<T> supplier) Creates a supplier which is restricted by a RateLimiter.static <T> Supplier<T> RateLimiter.decorateSupplier(RateLimiter rateLimiter, Supplier<T> supplier) Creates a supplier which is restricted by a RateLimiter.static voidRateLimiter.waitForPermission(RateLimiter rateLimiter) Will wait for permission within default timeout duration.static voidRateLimiter.waitForPermission(RateLimiter rateLimiter, int permits) Will wait for required number of permits within default timeout duration.Method parameters in io.github.resilience4j.ratelimiter with type arguments of type RateLimiterModifier and TypeMethodDescriptionRateLimiterRegistry.Builder.addRegistryEventConsumer(io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer) Configures a RateLimiterRegistry with a RateLimiter registry event consumer.static RateLimiterRegistryRateLimiterRegistry.of(RateLimiterConfig defaultRateLimiterConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer) Creates a RateLimiterRegistry with a custom default RateLimiter configuration and a RateLimiter registry event consumer.static RateLimiterRegistryRateLimiterRegistry.of(RateLimiterConfig defaultRateLimiterConfig, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers) Creates a RateLimiterRegistry with a custom default RateLimiter configuration and a list of RateLimiter registry event consumers.static RateLimiterRegistryRateLimiterRegistry.of(Map<String, RateLimiterConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer) Creates a RateLimiterRegistry with a Map of shared RateLimiter configurations and a RateLimiter registry event consumer.static RateLimiterRegistryRateLimiterRegistry.of(Map<String, RateLimiterConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer, Map<String, String> tags) Creates a RateLimiterRegistry with a Map of shared RateLimiter configurations and a RateLimiter registry event consumer.static RateLimiterRegistryRateLimiterRegistry.of(Map<String, RateLimiterConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers) Creates a RateLimiterRegistry with a Map of shared RateLimiter configurations and a list of RateLimiter registry event consumers.RateLimiterRegistry.Builder.withRegistryStore(io.github.resilience4j.core.RegistryStore<RateLimiter> registryStore) -
Uses of RateLimiter in io.github.resilience4j.ratelimiter.internal
Classes in io.github.resilience4j.ratelimiter.internal that implement RateLimiterModifier and TypeClassDescriptionclassAtomicRateLimitersplits all nanoseconds from the start of epoch into cycles.classA RateLimiter implementation that consists ofSemaphoreand scheduler that will refresh permissions after eachRateLimiterConfig.getLimitRefreshPeriod(), you can invokeSemaphoreBasedRateLimiter.shutdown()to close the limiter.Subclasses with type arguments of type RateLimiter in io.github.resilience4j.ratelimiter.internalMethods in io.github.resilience4j.ratelimiter.internal that return RateLimiterModifier and TypeMethodDescriptionInMemoryRateLimiterRegistry.rateLimiter(String name) Returns a managedRateLimiteror creates a new one with the default RateLimiter configuration.InMemoryRateLimiterRegistry.rateLimiter(String name, RateLimiterConfig config) Returns a managedRateLimiteror creates a new one with a custom RateLimiter configuration.InMemoryRateLimiterRegistry.rateLimiter(String name, RateLimiterConfig config, Map<String, String> tags) Returns a managedRateLimiteror creates a new one with a custom RateLimiter configuration.InMemoryRateLimiterRegistry.rateLimiter(String name, String configName) Returns a managedRateLimiteror creates a new one.Returns a managedRateLimiteror creates a new one.InMemoryRateLimiterRegistry.rateLimiter(String name, Supplier<RateLimiterConfig> rateLimiterConfigSupplier) Returns a managedRateLimiterConfigor creates a new one with a custom RateLimiterConfig configuration.InMemoryRateLimiterRegistry.rateLimiter(String name, Supplier<RateLimiterConfig> rateLimiterConfigSupplier, Map<String, String> tags) Returns a managedRateLimiterConfigor creates a new one with a custom RateLimiterConfig configuration.InMemoryRateLimiterRegistry.rateLimiter(String name, Map<String, String> tags) Returns a managedRateLimiteror creates a new one with the default RateLimiter configuration.Methods in io.github.resilience4j.ratelimiter.internal that return types with arguments of type RateLimiterModifier and TypeMethodDescriptionInMemoryRateLimiterRegistry.getAllRateLimiters()Returns all managedRateLimiterinstances.Constructor parameters in io.github.resilience4j.ratelimiter.internal with type arguments of type RateLimiterModifierConstructorDescriptionInMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer) InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer, Map<String, String> tags) InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers) InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers, Map<String, String> tags) InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer) InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer, Map<String, String> tags) InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers) InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers, Map<String, String> tags) InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers, Map<String, String> tags, io.github.resilience4j.core.RegistryStore<RateLimiter> registryStore) InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers, Map<String, String> tags, io.github.resilience4j.core.RegistryStore<RateLimiter> registryStore)