- java.lang.Object
-
- io.github.bucket4j.Refill
-
@Deprecated public class Refill extends Object
Deprecated.Specifies the speed of tokens regeneration. This class is deprecated, you should useBandwidth.builder()
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Refillgreedy(long tokens, Duration period)Deprecated.static Refillintervally(long tokens, Duration period)Deprecated.static RefillintervallyAligned(long tokens, Duration period, Instant timeOfFirstRefill, boolean useAdaptiveInitialTokens)Deprecated.static Refillof(long tokens, Duration period)Deprecated.static Refillsmooth(long tokens, Duration period)Deprecated.StringtoString()Deprecated.
-
-
-
Method Detail
-
of
@Deprecated public static Refill of(long tokens, Duration period)
Deprecated.
-
smooth
@Deprecated public static Refill smooth(long tokens, Duration period)
Deprecated.
-
greedy
@Deprecated public static Refill greedy(long tokens, Duration period)
Deprecated.This method is deprecated, you should useBandwidthBuilder.BandwidthBuilderRefillStage.refillGreedy(long, Duration)
-
intervally
@Deprecated public static Refill intervally(long tokens, Duration period)
Deprecated.This method is deprecated, you should useBandwidthBuilder.BandwidthBuilderRefillStage.refillIntervally(long, Duration)
-
intervallyAligned
@Deprecated public static Refill intervallyAligned(long tokens, Duration period, Instant timeOfFirstRefill, boolean useAdaptiveInitialTokens)
Deprecated.
-
-