Package org.simpleframework.transport
Enum PhaseType
- All Implemented Interfaces:
Serializable
,Comparable<PhaseType>
,java.lang.constant.Constable
The
PhaseType
enumeration is used to determine what
phase of the negotiation the handshake is in. This allows the
negotiation to control the selection for read and write ready
operations. Also, status signals completion of the handshake.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
CONSUME
Tells the negotiation that a read operations is needed. -
PRODUCE
Tells the negotiation that a write operation is required. -
COMMIT
Tells the negotiation that the the handshake is complete.
-
-
Constructor Details
-
PhaseType
private PhaseType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-