org.apache.mina.common
Class IdleStatus

java.lang.Object
  extended by org.apache.mina.common.IdleStatus

public class IdleStatus
extends Object

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

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

Version:
$Rev: 332218 $, $Date: 2005-11-10 12:52:42 +0900 $
Author:
The Apache Directory Project (dev@directory.apache.org)

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 both READER_IDLE and WRITER_IDLE.

Method Detail

toString

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

Overrides:
toString in class Object


Copyright © 2004-2005 . All Rights Reserved.