public interface IdleChecker
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Stop the idle checker.
|
int |
processIdleSession(long time)
Find idle session, to be called for each select() call.
|
void |
sessionRead(AbstractIoSession session,
long time)
Inform the IdleCheker a session have a read event
|
void |
sessionWritten(AbstractIoSession session,
long time)
Inform the IdleCheker a session have a write event
|
void |
start()
Start the idle checker inner threads
|
void sessionWritten(AbstractIoSession session, long time)
session
- the session with the write eventtime
- the data in ms (unix time) of the eventvoid sessionRead(AbstractIoSession session, long time)
session
- the session with the read eventtime
- the data in ms (unix time) of the eventint processIdleSession(long time)
time
- current unix time in msvoid start()
void destroy()
Copyright © 2009–2013 Apache MINA Project. All rights reserved.