| Package | Description |
|---|---|
| io.github.bucket4j | |
| io.github.bucket4j.local |
| Modifier and Type | Field and Description |
|---|---|
static SerializationHandle<Bandwidth> |
Bandwidth.SERIALIZATION_HANDLE |
| Modifier and Type | Method and Description |
|---|---|
static Bandwidth |
Bandwidth.classic(long capacity,
Refill refill)
Specifies limitation in conventional interpretation of token-bucket algorithm.
|
Bandwidth[] |
BucketConfiguration.getBandwidths() |
static Bandwidth |
Bandwidth.simple(long capacity,
Duration period)
Specifies simple limitation capacity tokens per period time window.
|
Bandwidth |
Bandwidth.withId(String id)
By default new created bandwidth has no ID.
|
Bandwidth |
Bandwidth.withInitialTokens(long initialTokens)
By default new created bandwidth has amount tokens that equals its capacity.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigurationBuilder |
ConfigurationBuilder.addLimit(Bandwidth bandwidth)
Adds limited bandwidth for all buckets which will be constructed by this builder instance.
|
boolean |
Bandwidth.equalsByContent(Bandwidth other) |
| Constructor and Description |
|---|
BucketConfiguration(List<Bandwidth> bandwidths) |
| Modifier and Type | Method and Description |
|---|---|
LocalBucketBuilder |
LocalBucketBuilder.addLimit(Bandwidth bandwidth)
Adds limited bandwidth for all buckets which will be constructed by this builder.
|
Copyright © 2022. All rights reserved.