| Package | Description |
|---|---|
| org.rnorth.ducttape.ratelimits |
| Modifier and Type | Method and Description |
|---|---|
static RateLimiterBuilder |
RateLimiterBuilder.newBuilder()
Obtain a new builder instance.
|
RateLimiterBuilder |
RateLimiterBuilder.withConstantThroughput()
Configure the rate limiter to use a constant throughput strategy for rate limiting.
|
RateLimiterBuilder |
RateLimiterBuilder.withRate(int invocations,
TimeUnit perTimeUnit)
Set the maximum rate that the limiter should allow, expressed as the number of invocations
allowed in a given time period.
|
Copyright © 2019. All rights reserved.