Class DelayParameters

    • Field Detail

      • maxUnsynchronizedTokens

        public final long maxUnsynchronizedTokens
      • maxUnsynchronizedTimeoutNanos

        public final long maxUnsynchronizedTimeoutNanos
    • Constructor Detail

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