public class IdleStatus
extends java.lang.Object
IoSession or
IoSession. There are three types of idleness:
READER_IDLE - No data is coming from the remote peer.WRITER_IDLE - Session is not writing any data.BOTH_IDLE - Both READER_IDLE and WRITER_IDLE.
Idle time settings are all disabled by default. You can enable them
using IoSession.setIdleTime(IdleStatus,int).
| 限定符和类型 | 字段和说明 |
|---|---|
static IdleStatus |
BOTH_IDLE
Represents both
READER_IDLE and WRITER_IDLE. |
static IdleStatus |
READER_IDLE
Represents the session status that no data is coming from the remote
peer.
|
static IdleStatus |
WRITER_IDLE
Represents the session status that the session is not writing any data.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
toString()
Returns the string representation of this status.
|
public static final IdleStatus READER_IDLE
public static final IdleStatus WRITER_IDLE
public static final IdleStatus BOTH_IDLE
READER_IDLE and WRITER_IDLE.public java.lang.String toString()
READER_IDLE - "reader idle"WRITER_IDLE - "writer idle"BOTH_IDLE - "both idle"toString 在类中 java.lang.Object