Package zmq.io.mechanism.curve
Enum CurveServerMechanism.State
- java.lang.Object
-
- java.lang.Enum<CurveServerMechanism.State>
-
- zmq.io.mechanism.curve.CurveServerMechanism.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CurveServerMechanism.State>
- Enclosing class:
- CurveServerMechanism
private static enum CurveServerMechanism.State extends java.lang.Enum<CurveServerMechanism.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTED
ERROR_SENT
EXPECT_HELLO
EXPECT_INITIATE
EXPECT_ZAP_REPLY
SEND_ERROR
SEND_READY
SEND_WELCOME
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CurveServerMechanism.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CurveServerMechanism.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPECT_HELLO
public static final CurveServerMechanism.State EXPECT_HELLO
-
SEND_WELCOME
public static final CurveServerMechanism.State SEND_WELCOME
-
EXPECT_INITIATE
public static final CurveServerMechanism.State EXPECT_INITIATE
-
EXPECT_ZAP_REPLY
public static final CurveServerMechanism.State EXPECT_ZAP_REPLY
-
SEND_READY
public static final CurveServerMechanism.State SEND_READY
-
SEND_ERROR
public static final CurveServerMechanism.State SEND_ERROR
-
ERROR_SENT
public static final CurveServerMechanism.State ERROR_SENT
-
CONNECTED
public static final CurveServerMechanism.State CONNECTED
-
-
Method Detail
-
values
public static CurveServerMechanism.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 (CurveServerMechanism.State c : CurveServerMechanism.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 CurveServerMechanism.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
-
-