public static enum QuotaResponse.Status extends java.lang.Enum<QuotaResponse.Status>
Enum Constant and Description |
---|
ERROR
The requested quota could not be allocated.
|
NO_OP
The quota succeeded, but was a no-op because the plugin does not enforce this quota group
(equivalent to OK, but relevant for debugging).
|
OK
The quota requests succeeded.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isError() |
boolean |
isOk() |
static QuotaResponse.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QuotaResponse.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuotaResponse.Status OK
public static final QuotaResponse.Status NO_OP
public static final QuotaResponse.Status ERROR
RuntimeException
s.public static QuotaResponse.Status[] values()
for (QuotaResponse.Status c : QuotaResponse.Status.values()) System.out.println(c);
public static QuotaResponse.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isOk()
public boolean isError()