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.
|