org.apache.mina.common

Class IdleStatus


public class IdleStatus
extends java.lang.Object

Represents the type of idleness of IoSession or IoSession. There are three types of idleness:

Idle time settings are all disabled by default. You can enable them using IoSession.setIdleTime(IdleStatus,int).

Field Summary

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.

Method Summary

String
toString()
Returns the string representation of this status.

Field Details

BOTH_IDLE

public static final IdleStatus BOTH_IDLE
Represents both READER_IDLE and WRITER_IDLE.

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.

Method Details

toString

public String toString()