| Package | Description |
|---|---|
| com.mingweisamuel.zyra.util |
Contains generally useful classes used internally by Zyra.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TokenTemporalBucket
This class represents a token bucket system.
|
| Modifier and Type | Method and Description |
|---|---|
TemporalBucket |
TemporalBucketFactory.get(long timespan,
int totalLimit,
float concurrentInstanceFactor,
float overheadFactor) |
| Modifier and Type | Method and Description |
|---|---|
List<TemporalBucket> |
TokenRateLimit.getBuckets() |
List<TemporalBucket> |
RateLimit.getBuckets()
Get the rate limit's buckets.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
TemporalBucket.getAllTokensOrDelay(TemporalBucket... buckets)
Attempts to get a token from every bucket, or no tokens at all.
|
boolean |
TemporalBucket.isEquivalent(TemporalBucket other)
Checks if this TemporalBucket is equivalent to another TemporalBucket.
|
Copyright © 2019. All rights reserved.