Package org.redisson.api
Enum RateIntervalUnit
- java.lang.Object
-
- java.lang.Enum<RateIntervalUnit>
-
- org.redisson.api.RateIntervalUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<RateIntervalUnit>
public enum RateIntervalUnit extends Enum<RateIntervalUnit>
- Author:
- Nikita Koksharov
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAYS
HOURS
MILLISECONDS
MINUTES
SECONDS
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract long
toMillis(long value)
static RateIntervalUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static RateIntervalUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLISECONDS
public static final RateIntervalUnit MILLISECONDS
-
SECONDS
public static final RateIntervalUnit SECONDS
-
MINUTES
public static final RateIntervalUnit MINUTES
-
HOURS
public static final RateIntervalUnit HOURS
-
DAYS
public static final RateIntervalUnit DAYS
-
-
Method Detail
-
values
public static RateIntervalUnit[] 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 (RateIntervalUnit c : RateIntervalUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RateIntervalUnit valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toMillis
public abstract long toMillis(long value)
-
-