| 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 |
|---|---|
Bandwidth |
BandwidthBuilder.BandwidthBuilderBuildStage.build()
Creates the new instance of
Bandwidth |
static Bandwidth |
Bandwidth.classic(long capacity,
Refill refill)
Deprecated.
|
Bandwidth[] |
BucketConfiguration.getBandwidths() |
static Bandwidth |
Bandwidth.simple(long capacity,
Duration period)
Deprecated.
|
Bandwidth |
Bandwidth.withId(String id)
Deprecated.
|
Bandwidth |
Bandwidth.withInitialTokens(long initialTokens)
Deprecated.
|
| 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 © 2024. All rights reserved.