Package org.apache.cassandra.exceptions
Enum RequestFailureReason
- java.lang.Object
-
- java.lang.Enum<RequestFailureReason>
-
- org.apache.cassandra.exceptions.RequestFailureReason
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RequestFailureReason>
public enum RequestFailureReason extends java.lang.Enum<RequestFailureReason>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestFailureReason.Serializer
-
Enum Constant Summary
Enum Constants Enum Constant Description INCOMPATIBLE_SCHEMA
INDEX_NOT_AVAILABLE
NODE_DOWN
READ_SIZE
READ_TOO_MANY_INDEXES
READ_TOO_MANY_TOMBSTONES
TIMEOUT
UNKNOWN
-
Field Summary
Fields Modifier and Type Field Description int
code
static RequestFailureReason.Serializer
serializer
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestFailureReason
forException(java.lang.Throwable t)
static RequestFailureReason
fromCode(int code)
static RequestFailureReason
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RequestFailureReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final RequestFailureReason UNKNOWN
-
READ_TOO_MANY_TOMBSTONES
public static final RequestFailureReason READ_TOO_MANY_TOMBSTONES
-
TIMEOUT
public static final RequestFailureReason TIMEOUT
-
INCOMPATIBLE_SCHEMA
public static final RequestFailureReason INCOMPATIBLE_SCHEMA
-
READ_SIZE
public static final RequestFailureReason READ_SIZE
-
NODE_DOWN
public static final RequestFailureReason NODE_DOWN
-
INDEX_NOT_AVAILABLE
public static final RequestFailureReason INDEX_NOT_AVAILABLE
-
READ_TOO_MANY_INDEXES
public static final RequestFailureReason READ_TOO_MANY_INDEXES
-
-
Field Detail
-
serializer
public static final RequestFailureReason.Serializer serializer
-
code
public final int code
-
-
Method Detail
-
values
public static RequestFailureReason[] 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 (RequestFailureReason c : RequestFailureReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestFailureReason 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
-
fromCode
public static RequestFailureReason fromCode(int code)
-
forException
public static RequestFailureReason forException(java.lang.Throwable t)
-
-