Enum DispatchType
- All Implemented Interfaces:
Serializable, Comparable<DispatchType>, java.lang.constant.Constable
This enumeration lists the different types of dispatches that request processing can trigger. In this instance,
dispatch means re-process this request using the given socket status.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDispatch type for non-blocking error operations.Dispatch type for non-blocking read operations.Dispatch type for non-blocking write operations. -
Method Summary
Modifier and TypeMethodDescriptionGet the socket event status associated with this dispatch type.static DispatchTypeReturns the enum constant of this type with the specified name.static DispatchType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NON_BLOCKING_READ
Dispatch type for non-blocking read operations. -
NON_BLOCKING_WRITE
Dispatch type for non-blocking write operations. -
NON_BLOCKING_ERROR
Dispatch type for non-blocking error operations.
-
-
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
-
getSocketStatus
Get the socket event status associated with this dispatch type.- Returns:
- Socket event status
-