guava-bursty-rate-limiter


License

License

Categories

Categories

Guava General Purpose Libraries Utility
GroupId

GroupId

com.iterable
ArtifactId

ArtifactId

guava-bursty-rate-limiter
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

guava-bursty-rate-limiter
guava-bursty-rate-limiter
Project URL

Project URL

https://github.com/Iterable/guava-bursty-rate-limiter
Project Organization

Project Organization

com.iterable
Source Code Management

Source Code Management

https://github.com/Iterable/guava-bursty-rate-limiter

Download guava-bursty-rate-limiter

How to add to project

<!-- https://jarcasting.com/artifacts/com.iterable/guava-bursty-rate-limiter/ -->
<dependency>
    <groupId>com.iterable</groupId>
    <artifactId>guava-bursty-rate-limiter</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.iterable/guava-bursty-rate-limiter/
implementation 'com.iterable:guava-bursty-rate-limiter:0.1.1'
// https://jarcasting.com/artifacts/com.iterable/guava-bursty-rate-limiter/
implementation ("com.iterable:guava-bursty-rate-limiter:0.1.1")
'com.iterable:guava-bursty-rate-limiter:jar:0.1.1'
<dependency org="com.iterable" name="guava-bursty-rate-limiter" rev="0.1.1">
  <artifact name="guava-bursty-rate-limiter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.iterable', module='guava-bursty-rate-limiter', version='0.1.1')
)
libraryDependencies += "com.iterable" % "guava-bursty-rate-limiter" % "0.1.1"
[com.iterable/guava-bursty-rate-limiter "0.1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.guava : guava jar 19.0

Project Modules

There are no modules declared in this project.

guava-bursty-rate-limiter

This is a small library to provide an additional public API for the Guava rate limiter. The library provides an API, SmoothBurstyRateLimiter, that lets you create a rate limiter with bursts of a given period (other than the default 1 second). This effectively implements https://github.com/google/guava/issues/1974 as a separate library.

It can be used like this:

import com.google.common.util.concurrent.SmoothBurstyRateLimiter;

/* ... */

// Create a rate limiter with 10 qps with a burst period of 30s (max burst of 300).
RateLimiter rateLimiter = SmoothBurstyRateLimiter.create(10, 30);
com.iterable

Iterable

Versions

Version
0.1.1
0.1.0