@InterfaceAudience.Public @InterfaceStability.Evolving public enum ThrottleType extends Enum<ThrottleType>
Enum Constant and Description |
---|
REQUEST_NUMBER
Throttling based on the number of request per time-unit
|
REQUEST_SIZE
Throttling based on the read+write data size
|
Modifier and Type | Method and Description |
---|---|
static ThrottleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThrottleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThrottleType REQUEST_NUMBER
public static final ThrottleType REQUEST_SIZE
public static ThrottleType[] values()
for (ThrottleType c : ThrottleType.values()) System.out.println(c);
public static ThrottleType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null