Enum TransportState
- java.lang.Object
-
- java.lang.Enum<TransportState>
-
- org.apache.hugegraph.computer.core.network.TransportState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TransportState>
public enum TransportState extends java.lang.Enum<TransportState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ESTABLISHEDFINISH_RECVFINISH_SENTREADYSTART_RECVSTART_SENT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransportStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TransportState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READY
public static final TransportState READY
-
START_SENT
public static final TransportState START_SENT
-
START_RECV
public static final TransportState START_RECV
-
ESTABLISHED
public static final TransportState ESTABLISHED
-
FINISH_SENT
public static final TransportState FINISH_SENT
-
FINISH_RECV
public static final TransportState FINISH_RECV
-
-
Method Detail
-
values
public static TransportState[] 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 (TransportState c : TransportState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransportState 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
-
-