Package org.apache.mina.common
Class IdleStatus
java.lang.Object
org.apache.mina.common.IdleStatus
Represents the type of idleness of
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
- BothREADER_IDLE
andWRITER_IDLE
.
Idle time settings are all disabled by default. You can enable them
using IoSession.setIdleTime(IdleStatus,int)
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IdleStatus
Represents bothREADER_IDLE
andWRITER_IDLE
.static final IdleStatus
Represents the session status that no data is coming from the remote peer.static final IdleStatus
Represents the session status that the session is not writing any data. -
Method Summary
-
Field Details
-
READER_IDLE
Represents the session status that no data is coming from the remote peer. -
WRITER_IDLE
Represents the session status that the session is not writing any data. -
BOTH_IDLE
Represents bothREADER_IDLE
andWRITER_IDLE
.
-
-
Method Details
-
toString
Returns the string representation of this status.READER_IDLE
- "reader idle"WRITER_IDLE
- "writer idle"BOTH_IDLE
- "both idle"
-