public class IdleStatusChecker extends Object
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.Modifier and Type | Class and Description |
---|---|
class |
IdleStatusChecker.NotifyingTask
The class to place in the transport executor for checking the sessions idle
|
Constructor and Description |
---|
IdleStatusChecker()
Creates a new instance of 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. |
public IdleStatusChecker()
public void addSession(AbstractIoSession session)
session
- the session to checkpublic IdleStatusChecker.NotifyingTask getNotifyingTask()
IoService
executor.Copyright © 2004–2024 Apache MINA Project. All rights reserved.