Enum Bucket4jBandwidthLimitProperties.BandwidthRefillStrategies

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      GREEDY
      This type of refill regenerates tokens in a greedy manner; it tries to add the tokens to bucket as soon as possible.
      INTERVALLY
      This type of refill regenerates tokens in intervally manner.
    • Enum Constant Detail

      • GREEDY

        public static final Bucket4jBandwidthLimitProperties.BandwidthRefillStrategies GREEDY
        This type of refill regenerates tokens in a greedy manner; it tries to add the tokens to bucket as soon as possible. For example refill "10 tokens per 1 second" adds 1 token per each 100 millisecond; in other words refill will not wait 1 second to regenerate 10 tokens.
    • Method Detail

      • values

        public static Bucket4jBandwidthLimitProperties.BandwidthRefillStrategies[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Bucket4jBandwidthLimitProperties.BandwidthRefillStrategies c : Bucket4jBandwidthLimitProperties.BandwidthRefillStrategies.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Bucket4jBandwidthLimitProperties.BandwidthRefillStrategies valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null