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_IDLEandWRITER_IDLE.
Idle time settings are all disabled by default. You can enable them
using IoSession.setIdleTime(IdleStatus,int).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IdleStatusRepresents bothREADER_IDLEandWRITER_IDLE.static final IdleStatusRepresents the session status that no data is coming from the remote peer.static final IdleStatusRepresents 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_IDLEandWRITER_IDLE.
-
-
Method Details
-
toString
Returns the string representation of this status.READER_IDLE- "reader idle"WRITER_IDLE- "writer idle"BOTH_IDLE- "both idle"
-