java.lang.Object
io.github.bucket4j.distributed.proxy.optimization.DelayParameters

public class DelayParameters extends Object
Describes parameters for DelayOptimization.
See Also:
  • Field Details

    • maxUnsynchronizedTokens

      public final long maxUnsynchronizedTokens
    • maxUnsynchronizedTimeoutNanos

      public final long maxUnsynchronizedTimeoutNanos
  • Constructor Details

    • DelayParameters

      public DelayParameters(long maxUnsynchronizedTokens, Duration maxTimeoutBetweenSynchronization)
      Creates the new instance of DelayParameters
      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.