@InterfaceAudience.Public @InterfaceStability.Evolving public enum QuotaScope extends Enum<QuotaScope>
Enum Constant and Description |
---|
CLUSTER
The specified throttling rules will be applied at the cluster level.
|
MACHINE
The specified throttling rules will be applied on the machine level.
|
Modifier and Type | Method and Description |
---|---|
static QuotaScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QuotaScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuotaScope CLUSTER
public static final QuotaScope MACHINE
public static QuotaScope[] values()
for (QuotaScope c : QuotaScope.values()) System.out.println(c);
public static QuotaScope 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