|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.core.session.IdleStatusChecker
public class IdleStatusChecker
Detects idle sessions and fires sessionIdle events to them. To be used for service unable to trigger idle events alone, like VmPipe or SerialTransport. Polling base transport are advised to trigger idle events alone, using the poll/select timeout.
Nested Class Summary | |
---|---|
class |
IdleStatusChecker.NotifyingTask
The class to place in the transport executor for checking the sessions idle |
Constructor Summary | |
---|---|
IdleStatusChecker()
|
Method Summary | |
---|---|
void |
addSession(AbstractIoSession session)
Add the session for being checked for idle. |
IdleStatusChecker.NotifyingTask |
getNotifyingTask()
get a runnable task able to be scheduled in the IoService executor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdleStatusChecker()
Method Detail |
---|
public void addSession(AbstractIoSession session)
session
- the session to checkpublic IdleStatusChecker.NotifyingTask getNotifyingTask()
IoService
executor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |