|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.common.IdleStatusChecker
public class IdleStatusChecker
Detects idle sessions and fires sessionIdle events to them.
| Method Summary | |
|---|---|
void |
addService(AbstractIoService service)
|
void |
addSession(AbstractIoSession session)
|
static IdleStatusChecker |
getInstance()
|
static void |
notifyIdleness(IoService service,
long currentTime)
|
static void |
notifyIdleness(Iterator<? extends IoSession> sessions,
long currentTime)
Fires a IoEventType.SESSION_IDLE event to any applicable
sessions in the specified collection. |
static void |
notifyIdleSession(IoSession session,
long currentTime)
Fires a IoEventType.SESSION_IDLE event if applicable for the
specified session. |
void |
removeService(AbstractIoService service)
|
void |
removeSession(AbstractIoSession session)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static IdleStatusChecker getInstance()
public void addSession(AbstractIoSession session)
public void addService(AbstractIoService service)
public void removeSession(AbstractIoSession session)
public void removeService(AbstractIoService service)
public static void notifyIdleness(Iterator<? extends IoSession> sessions,
long currentTime)
IoEventType.SESSION_IDLE event to any applicable
sessions in the specified collection.
currentTime - the current time (i.e. System.currentTimeMillis())
public static void notifyIdleness(IoService service,
long currentTime)
public static void notifyIdleSession(IoSession session,
long currentTime)
IoEventType.SESSION_IDLE event if applicable for the
specified session.
currentTime - the current time (i.e. System.currentTimeMillis())
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||