Package org.apache.cassandra.net
Enum ResourceLimits.Outcome
- java.lang.Object
-
- java.lang.Enum<ResourceLimits.Outcome>
-
- org.apache.cassandra.net.ResourceLimits.Outcome
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ResourceLimits.Outcome>
- Enclosing class:
- ResourceLimits
public static enum ResourceLimits.Outcome extends java.lang.Enum<ResourceLimits.Outcome>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABOVE_LIMIT
BELOW_LIMIT
INSUFFICIENT_ENDPOINT
INSUFFICIENT_GLOBAL
SUCCESS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceLimits.Outcome
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ResourceLimits.Outcome[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final ResourceLimits.Outcome SUCCESS
-
INSUFFICIENT_ENDPOINT
public static final ResourceLimits.Outcome INSUFFICIENT_ENDPOINT
-
INSUFFICIENT_GLOBAL
public static final ResourceLimits.Outcome INSUFFICIENT_GLOBAL
-
BELOW_LIMIT
public static final ResourceLimits.Outcome BELOW_LIMIT
-
ABOVE_LIMIT
public static final ResourceLimits.Outcome ABOVE_LIMIT
-
-
Method Detail
-
values
public static ResourceLimits.Outcome[] 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 (ResourceLimits.Outcome c : ResourceLimits.Outcome.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceLimits.Outcome valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-