Package com.barchart.udt
Enum Class EpollUDT.Opt
- All Implemented Interfaces:
Serializable,Comparable<EpollUDT.Opt>,Constable
- Enclosing class:
EpollUDT
poll interest option mask
see udt.h enum - EPOLLOpt
UDT_EPOLL_IN = 0x1,
UDT_EPOLL_OUT = 0x4,
UDT_EPOLL_ERR = 0x8
this is subset adapted to jdk select pattern-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUDT_EPOLL_ERR: interested in exceptionsnot interestedUDT_EPOLL_IN : interested in readUDT_EPOLL_OUT: interested in write -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EpollUDT.Optfrom(int code) booleanhasError()booleanhasRead()booleanhasWrite()booleanNon-empty mask of 3 parts.static EpollUDT.OptReturns the enum constant of this class with the specified name.static EpollUDT.Opt[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
not interested -
READ
UDT_EPOLL_IN : interested in read -
WRITE
UDT_EPOLL_OUT: interested in write -
ERROR
UDT_EPOLL_ERR: interested in exceptions -
BOTH
-
ERROR_READ
-
ERROR_WRITE
-
ALL
-
UNKNOWN
-
-
Field Details
-
ENUM_VALS
-
code
public final int codepoll event mask;used for both requesting interest and reporting readiness
-
-
Constructor Details
-
Opt
private Opt(int code)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
from
-
hasError
public boolean hasError() -
hasRead
public boolean hasRead() -
hasWrite
public boolean hasWrite() -
isValidInterestRequest
public boolean isValidInterestRequest()Non-empty mask of 3 parts.
-