| Package | Description |
|---|---|
| io.github.bucket4j | |
| io.github.bucket4j.local |
| Modifier and Type | Method and Description |
|---|---|
BandwidthBuilder.BandwidthBuilderBuildStage |
BandwidthBuilder.BandwidthBuilderBuildStage.id(String id)
By default, new created bandwidth has no ID.
|
BandwidthBuilder.BandwidthBuilderBuildStage |
BandwidthBuilder.BandwidthBuilderBuildStage.initialTokens(long initialTokens)
By default, new created
Bandwidth has amount tokens that equals its capacity. |
BandwidthBuilder.BandwidthBuilderBuildStage |
BandwidthBuilder.BandwidthBuilderRefillStage.refillGreedy(long tokens,
Duration period)
Configures refill that does refill of tokens in greedy manner,
it will try to add the tokens to bucket as soon as possible.
|
BandwidthBuilder.BandwidthBuilderBuildStage |
BandwidthBuilder.BandwidthBuilderRefillStage.refillIntervally(long tokens,
Duration period)
Configures refill that does refill of tokens in intervally manner.
|
BandwidthBuilder.BandwidthBuilderBuildStage |
BandwidthBuilder.BandwidthBuilderRefillStage.refillIntervallyAligned(long tokens,
Duration period,
Instant timeOfFirstRefill)
Configures refill that does refill of tokens in intervally manner.
|
BandwidthBuilder.BandwidthBuilderBuildStage |
BandwidthBuilder.BandwidthBuilderRefillStage.refillIntervallyAlignedWithAdaptiveInitialTokens(long tokens,
Duration period,
Instant timeOfFirstRefill)
Configures refill that does refill of tokens in intervally manner.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigurationBuilder |
ConfigurationBuilder.addLimit(Function<BandwidthBuilder.BandwidthBuilderCapacityStage,BandwidthBuilder.BandwidthBuilderBuildStage> bandwidthConfigurator) |
| Modifier and Type | Method and Description |
|---|---|
LocalBucketBuilder |
LocalBucketBuilder.addLimit(Function<BandwidthBuilder.BandwidthBuilderCapacityStage,BandwidthBuilder.BandwidthBuilderBuildStage> bandwidthConfigurator) |
Copyright © 2024. All rights reserved.