DaveAKing / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Add factory method to RateLimiter to allow setting maxBurstSeconds #1581

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When someone is using the RateLimiter to throttle requests, it may be desirable 
 never  to exceed the permitsPerSecond, even if that results in 
underutilization of resources. To achieve that the maxBurstSeconds must be set 
to 0. 

Currently even though the desired functionality is supported by the class 
internally, it is not exposed by the RateLimiter's public API

Original issue reported on code.google.com by agkogka...@groupon.com on 16 Nov 2013 at 7:44

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 20 Nov 2013 at 8:13

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:10

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08