Enum Class RefillSpeed

java.lang.Object
java.lang.Enum<RefillSpeed>
com.giffing.bucket4j.spring.boot.starter.context.RefillSpeed
All Implemented Interfaces:
Serializable, Comparable<RefillSpeed>, Constable

public enum RefillSpeed extends Enum<RefillSpeed>
  • Enum Constant Details

    • GREEDY

      public static final RefillSpeed GREEDY
      Greedily regenerates tokens.

      The tokens are refilled as soon as possible.

    • INTERVAL

      public static final RefillSpeed INTERVAL
      Regenerates tokens in an interval manner.

      The tokens refilled on the specific defined interval.

  • Method Details

    • values

      public static RefillSpeed[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RefillSpeed valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null