Package org.apache.cassandra.net
Enum ParamType
- java.lang.Object
-
- java.lang.Enum<ParamType>
-
- org.apache.cassandra.net.ParamType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ParamType>
public enum ParamType extends java.lang.Enum<ParamType>
Type names and serializers for various parameters that can be put inMessage
params map. It should be safe to add new params without bumping messaging version -Message
serializer will skip over any params it doesn't recognise. Please don't add boolean params here. Extend and useMessageFlag
instead.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILURE_CALLBACK
Deprecated.FAILURE_REASON
Deprecated.FAILURE_RESPONSE
Deprecated.FORWARD_TO
RESPOND_TO
TRACE_SESSION
TRACE_TYPE
TRACK_REPAIRED_DATA
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParamType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ParamType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORWARD_TO
public static final ParamType FORWARD_TO
-
RESPOND_TO
public static final ParamType RESPOND_TO
-
FAILURE_RESPONSE
@Deprecated public static final ParamType FAILURE_RESPONSE
Deprecated.
-
FAILURE_REASON
@Deprecated public static final ParamType FAILURE_REASON
Deprecated.
-
FAILURE_CALLBACK
@Deprecated public static final ParamType FAILURE_CALLBACK
Deprecated.
-
TRACE_SESSION
public static final ParamType TRACE_SESSION
-
TRACE_TYPE
public static final ParamType TRACE_TYPE
-
TRACK_REPAIRED_DATA
@Deprecated public static final ParamType TRACK_REPAIRED_DATA
Deprecated.
-
-
Method Detail
-
values
public static ParamType[] 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 (ParamType c : ParamType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParamType 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
-
-