Package zmq.pipe
Enum Pipe.State
- java.lang.Object
-
- java.lang.Enum<Pipe.State>
-
- zmq.pipe.Pipe.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Pipe.State>
- Enclosing class:
- Pipe
static enum Pipe.State extends java.lang.Enum<Pipe.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
DELIMITER_RECEIVED
TERM_ACK_SENT
TERM_REQ_SENT_1
TERM_REQ_SENT_2
WAITING_FOR_DELIMITER
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pipe.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Pipe.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final Pipe.State ACTIVE
-
DELIMITER_RECEIVED
public static final Pipe.State DELIMITER_RECEIVED
-
WAITING_FOR_DELIMITER
public static final Pipe.State WAITING_FOR_DELIMITER
-
TERM_ACK_SENT
public static final Pipe.State TERM_ACK_SENT
-
TERM_REQ_SENT_1
public static final Pipe.State TERM_REQ_SENT_1
-
TERM_REQ_SENT_2
public static final Pipe.State TERM_REQ_SENT_2
-
-
Method Detail
-
values
public static Pipe.State[] 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 (Pipe.State c : Pipe.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Pipe.State 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
-
-