Package org.apache.mina.core.session
Class IdleStatus
- java.lang.Object
-
- org.apache.mina.core.session.IdleStatus
-
public class IdleStatus extends Object
Represents the type of idleness ofIoSession
orIoSession
. 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
IoSessionConfig.setIdleTime(IdleStatus,int)
.- Author:
- Apache MINA Project
-
-
Field Summary
Fields Modifier and Type Field Description static IdleStatus
BOTH_IDLE
Represents bothREADER_IDLE
andWRITER_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.
-
-
-
Field Detail
-
READER_IDLE
public static final IdleStatus READER_IDLE
Represents the session status that no data is coming from the remote peer.
-
WRITER_IDLE
public static final IdleStatus WRITER_IDLE
Represents the session status that the session is not writing any data.
-
BOTH_IDLE
public static final IdleStatus BOTH_IDLE
Represents bothREADER_IDLE
andWRITER_IDLE
.
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classObject
- Returns:
- the string representation of this status.
READER_IDLE
-"reader idle"
WRITER_IDLE
-"writer idle"
BOTH_IDLE
-"both idle"
-
-