| Package | Description |
|---|---|
| com.devexperts.qd.util |
This package contains utility classes which are used by QD, but which do not
depend on QD and which do not constitute any separate module or subsystem.
|
| Modifier and Type | Field and Description |
|---|---|
static RateLimiter |
RateLimiter.UNLIMITED
A rate limiter implementation that imposes no limits on operations.
|
| Modifier and Type | Method and Description |
|---|---|
static RateLimiter |
RateLimiter.of(double rate)
Creates a rate limiter with the specified rate limit and default amortization limit (1 second).
|
static RateLimiter |
RateLimiter.of(double rate,
com.devexperts.util.TimePeriod amortizationPeriod)
Creates a rate limiter with the specified parameters.
|
static RateLimiter |
RateLimiter.ofBucket(long bucketSize,
long refillPeriodNanos)
Creates a rate limiter with the specified token bucket parameters.
|
static RateLimiter |
RateLimiter.valueOf(String config)
Creates a rate limiter from a configuration string.
|
Copyright © 2002–2025 Devexperts LLC. All rights reserved.