RateLimiter limiter = RateLimiter.builder().
withTokenPerSecond(1).
withType(RateLimiter.RateLimiterType.TB).
build();
for ( int i = 0 ;i < 10;i++){
limiter.getToken(1);
//...
}-
Notifications
You must be signed in to change notification settings - Fork 14
限流
License
taobaorun/TGD
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
限流
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published