|
barchart-udt-core 2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<EpollUDT.Opt>
com.barchart.udt.EpollUDT.Opt
public static enum EpollUDT.Opt
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
| Enum Constant Summary | |
|---|---|
ALL
|
|
BOTH
|
|
ERROR
UDT_EPOLL_ERR: interested in exceptions |
|
ERROR_READ
|
|
ERROR_WRITE
|
|
NONE
not interested |
|
READ
UDT_EPOLL_IN : interested in read |
|
UNKNOWN
|
|
WRITE
UDT_EPOLL_OUT: interested in write |
|
| Field Summary | |
|---|---|
int |
code
poll event mask; |
| Method Summary | |
|---|---|
static EpollUDT.Opt |
from(int code)
|
boolean |
hasError()
|
boolean |
hasRead()
|
boolean |
hasWrite()
|
boolean |
isValidInterestRequest()
Non-empty mask of 3 parts. |
static EpollUDT.Opt |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EpollUDT.Opt[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final EpollUDT.Opt NONE
public static final EpollUDT.Opt READ
public static final EpollUDT.Opt WRITE
public static final EpollUDT.Opt ERROR
public static final EpollUDT.Opt BOTH
public static final EpollUDT.Opt ERROR_READ
public static final EpollUDT.Opt ERROR_WRITE
public static final EpollUDT.Opt ALL
public static final EpollUDT.Opt UNKNOWN
| Field Detail |
|---|
public final int code
used for both requesting interest and reporting readiness
| Method Detail |
|---|
public static EpollUDT.Opt[] values()
for (EpollUDT.Opt c : EpollUDT.Opt.values()) System.out.println(c);
public static EpollUDT.Opt valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static EpollUDT.Opt from(int code)
public boolean hasError()
public boolean hasRead()
public boolean hasWrite()
public boolean isValidInterestRequest()
|
barchart-udt-core 2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||