Guava Rate Limiter
This is the rate limiter implementation found in the Guava libraries, extracted into its own project so that modifications could be made. The main modification made in this version of the rate limiter is the ability to set the max-burst-seconds property on the SmoothBursty
rate limiter.
Requirements
Java 1.6 and later.
Installation
Maven
Add this dependency to your project's POM:
<dependency>
<groupId>com.revinate</groupId>
<artifactId>guava-rate-limiter</artifactId>
<version>19.1</version>
</dependency>
Gradle
Add this dependency to your project's build script:
compile 'com.revinate:guava-rate-limiter:19.1'