Class AbstractPollingIoConnector<S extends AbstractIoSession, H>

Type Parameters:
S - The type of IoSession
H - The type of IoHandler
All Implemented Interfaces:
IoConnector, IoService
Direct Known Subclasses:
AprSocketConnector, NioDatagramConnector, NioSocketConnector

public abstract class AbstractPollingIoConnector<S extends AbstractIoSession, H> extends AbstractIoConnector
A base class for implementing client transport using a polling strategy. The underlying sockets will be checked in an active loop and woke up when an socket needed to be processed. This class handle the logic behind binding, connecting and disposing the client sockets. A Executor will be used for running client connection, and an AbstractPollingIoProcessor will be used for processing connected client I/O operations like reading, writing and closing. All the low level methods for binding, connecting, closing need to be provided by the subclassing implementation.
See Also: