Package | Description |
---|---|
io.github.bucket4j |
Modifier and Type | Method and Description |
---|---|
static Refill |
Refill.greedy(long tokens,
Duration period)
Creates the
Refill that does refill of tokens in greedy manner,
it will try to add the tokens to bucket as soon as possible. |
static Refill |
Refill.intervally(long tokens,
Duration period)
Creates the
Refill that does refill of tokens in intervally manner. |
static Refill |
Refill.intervallyAligned(long tokens,
Duration period,
Instant timeOfFirstRefill,
boolean useAdaptiveInitialTokens)
Creates the
Refill that does refill of tokens in intervally manner. |
static Refill |
Refill.of(long tokens,
Duration period)
Deprecated.
|
static Refill |
Refill.smooth(long tokens,
Duration period)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Bandwidth |
Bandwidth.classic(long capacity,
Refill refill)
Specifies limitation in classic interpretation of token-bucket algorithm.
|
Copyright © 2020. All rights reserved.