Class IdleStatus

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

public class IdleStatus extends 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 Details

    • 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 Details