Package org.apache.cassandra.transport
Enum Envelope.Header.Flag
- java.lang.Object
-
- java.lang.Enum<Envelope.Header.Flag>
-
- org.apache.cassandra.transport.Envelope.Header.Flag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Envelope.Header.Flag>
- Enclosing class:
- Envelope.Header
public static enum Envelope.Header.Flag extends java.lang.Enum<Envelope.Header.Flag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPRESSED
CUSTOM_PAYLOAD
TRACING
USE_BETA
WARNING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.EnumSet<Envelope.Header.Flag>
deserialize(int flags)
static int
serialize(java.util.EnumSet<Envelope.Header.Flag> flags)
static Envelope.Header.Flag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Envelope.Header.Flag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPRESSED
public static final Envelope.Header.Flag COMPRESSED
-
TRACING
public static final Envelope.Header.Flag TRACING
-
CUSTOM_PAYLOAD
public static final Envelope.Header.Flag CUSTOM_PAYLOAD
-
WARNING
public static final Envelope.Header.Flag WARNING
-
USE_BETA
public static final Envelope.Header.Flag USE_BETA
-
-
Method Detail
-
values
public static Envelope.Header.Flag[] 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 (Envelope.Header.Flag c : Envelope.Header.Flag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Envelope.Header.Flag 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
-
deserialize
public static java.util.EnumSet<Envelope.Header.Flag> deserialize(int flags)
-
serialize
public static int serialize(java.util.EnumSet<Envelope.Header.Flag> flags)
-
-