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.
Java 1.6 and later.
Add this dependency to your project's POM:
<dependency>
<groupId>com.revinate</groupId>
<artifactId>guava-rate-limiter</artifactId>
<version>19.1</version>
</dependency>
Add this dependency to your project's build script:
compile 'com.revinate:guava-rate-limiter:19.1'