org.apache.cassandra.net.io
Enum TcpReader.TcpReaderState
java.lang.Object
java.lang.Enum<TcpReader.TcpReaderState>
org.apache.cassandra.net.io.TcpReader.TcpReaderState
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<TcpReader.TcpReaderState>
- Enclosing class:
- TcpReader
public static enum TcpReader.TcpReaderState
- extends java.lang.Enum<TcpReader.TcpReaderState>
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
START
public static final TcpReader.TcpReaderState START
PREAMBLE
public static final TcpReader.TcpReaderState PREAMBLE
PROTOCOL
public static final TcpReader.TcpReaderState PROTOCOL
CONTENT_LENGTH
public static final TcpReader.TcpReaderState CONTENT_LENGTH
CONTENT
public static final TcpReader.TcpReaderState CONTENT
CONTENT_STREAM
public static final TcpReader.TcpReaderState CONTENT_STREAM
DONE
public static final TcpReader.TcpReaderState DONE
values
public static TcpReader.TcpReaderState[] 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 (TcpReader.TcpReaderState c : TcpReader.TcpReaderState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TcpReader.TcpReaderState 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 name
java.lang.NullPointerException
- if the argument is null
Copyright © 2010 The Apache Software Foundation