public class IdleStatusChecker
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
IdleStatusChecker.NotifyingTask |
Constructor and Description |
---|
IdleStatusChecker() |
Modifier and Type | Method and Description |
---|---|
void |
addService(AbstractIoService service) |
void |
addSession(AbstractIoSession session) |
IdleStatusChecker.NotifyingTask |
getNotifyingTask() |
static void |
notifyIdleness(IoService service,
long currentTime) |
static void |
notifyIdleness(java.util.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) |
public void addSession(AbstractIoSession session)
public void addService(AbstractIoService service)
public void removeSession(AbstractIoSession session)
public void removeService(AbstractIoService service)
public IdleStatusChecker.NotifyingTask getNotifyingTask()
public static void notifyIdleness(java.util.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()
)Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.