Package | Description |
---|---|
org.dromara.hutool.core.thread.ratelimiter |
限流器实现,几种策略包括:
令牌桶(Token Bucket)
漏桶(Leaky Bucket)
固定窗口(Fixed Window)
滑动窗口(Sliding Window)
概念见:https://www.explainthis.io/zh-hans/swe/rate-limiter
|
Class and Description |
---|
RateLimiter
限流接口
通过实现此接口以实现不同的限流策略,如令牌桶、分布式限流等 |
RateLimiterConfig
限流通用配置
|
SemaphoreRateLimiter
基于
Semaphore 实现的限流器 |
Copyright © 2025. All rights reserved.