Package org.apache.cassandra.net
Enum MessageFlag
- java.lang.Object
-
- java.lang.Enum<MessageFlag>
-
- org.apache.cassandra.net.MessageFlag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MessageFlag>
public enum MessageFlag extends java.lang.Enum<MessageFlag>
Binary message flags to be passed asflags
field ofMessage
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALL_BACK_ON_FAILURE
a failure response should be sent back in case of failureTRACK_REPAIRED_DATA
track repaired data - see CASSANDRA-14145TRACK_WARNINGS
allow creating warnings or aborting queries based off query - see CASSANDRA-16850
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageFlag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MessageFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CALL_BACK_ON_FAILURE
public static final MessageFlag CALL_BACK_ON_FAILURE
a failure response should be sent back in case of failure
-
TRACK_REPAIRED_DATA
public static final MessageFlag TRACK_REPAIRED_DATA
track repaired data - see CASSANDRA-14145
-
TRACK_WARNINGS
public static final MessageFlag TRACK_WARNINGS
allow creating warnings or aborting queries based off query - see CASSANDRA-16850
-
-
Method Detail
-
values
public static MessageFlag[] 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 (MessageFlag c : MessageFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageFlag 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
-
-