- java.lang.Object
-
- java.lang.Enum<ProtocolDetectionState>
-
- io.netty5.handler.codec.ProtocolDetectionState
-
- All Implemented Interfaces:
Serializable
,Comparable<ProtocolDetectionState>
public enum ProtocolDetectionState extends Enum<ProtocolDetectionState>
The state of the current detection.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DETECTED
Protocol was detected,INVALID
The data was invalid.NEEDS_MORE_DATA
Need more data to detect the protocol.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProtocolDetectionState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProtocolDetectionState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEEDS_MORE_DATA
public static final ProtocolDetectionState NEEDS_MORE_DATA
Need more data to detect the protocol.
-
INVALID
public static final ProtocolDetectionState INVALID
The data was invalid.
-
DETECTED
public static final ProtocolDetectionState DETECTED
Protocol was detected,
-
-
Method Detail
-
values
public static ProtocolDetectionState[] 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 (ProtocolDetectionState c : ProtocolDetectionState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtocolDetectionState valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-