Module io.github.bucket4j.core
Class DelayParameters
- java.lang.Object
-
- io.github.bucket4j.distributed.proxy.optimization.DelayParameters
-
public class DelayParameters extends Object
Describes parameters forDelayOptimization.
-
-
Field Summary
Fields Modifier and Type Field Description longmaxUnsynchronizedTimeoutNanoslongmaxUnsynchronizedTokens
-
Constructor Summary
Constructors Constructor Description DelayParameters(long maxUnsynchronizedTokens, Duration maxTimeoutBetweenSynchronization)Creates the new instance ofDelayParameters
-
-
-
Constructor Detail
-
DelayParameters
public DelayParameters(long maxUnsynchronizedTokens, Duration maxTimeoutBetweenSynchronization)Creates the new instance ofDelayParameters- Parameters:
maxUnsynchronizedTokens- threshold that describes how many tokens can be consumed locally without synchronization with external storage. Must be a positive number.maxTimeoutBetweenSynchronization- threshold that describes how long bucket proxy can act locally without synchronization with external storage. Must be a positive duration.
-
-