|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<IoState> com.faunos.util.net.IoState
public enum IoState
The various I/O states of a Handlet
.
Enum Constant Summary | |
---|---|
DONE
|
|
PROCESSING
|
|
READING
|
|
WRITING
|
Method Summary | |
---|---|
int |
interestOp()
Returns the SelectionKey interest-op associated with this I/O state. |
boolean |
isDone()
Tests whether this is the DONE state. |
boolean |
isProcessing()
Tests whether this is the PROCESSING state. |
boolean |
isReading()
Tests whether this is the READING state. |
boolean |
isWriting()
Tests whether this is the WRITING state. |
static IoState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IoState[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IoState READING
public static final IoState PROCESSING
public static final IoState WRITING
public static final IoState DONE
Method Detail |
---|
public static final IoState[] values()
for(IoState c : IoState.values()) System.out.println(c);
public static IoState valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic boolean isReading()
public boolean isWriting()
public boolean isProcessing()
public boolean isDone()
public int interestOp()
SelectionKey.OP_READ
,
SelectionKey.OP_WRITE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |