public class IdleStatusChecker
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
IdleStatusChecker.NotifyingTask
The class to place in the transport executor for checking the sessions idle
|
private class |
IdleStatusChecker.SessionCloseListener |
| Modifier and Type | Field and Description |
|---|---|
private IdleStatusChecker.NotifyingTask |
notifyingTask |
private IoFutureListener<IoFuture> |
sessionCloseListener |
private java.util.Set<AbstractIoSession> |
sessions |
| Constructor and Description |
|---|
IdleStatusChecker() |
| Modifier and Type | Method and Description |
|---|---|
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. |
private void |
removeSession(AbstractIoSession session)
remove a session from the list of session being checked.
|
private final java.util.Set<AbstractIoSession> sessions
private final IdleStatusChecker.NotifyingTask notifyingTask
private final IoFutureListener<IoFuture> sessionCloseListener
public void addSession(AbstractIoSession session)
session - the session to checkprivate void removeSession(AbstractIoSession session)
session - public IdleStatusChecker.NotifyingTask getNotifyingTask()
IoService executor.