public class RecyclableSocketChannelSelector extends Object implements SocketChannelSelector
| Constructor and Description |
|---|
RecyclableSocketChannelSelector(IOExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IOExecutor |
executor() |
void |
inputNotify(SocketChannel channel,
Channel.Listener listener)
Register a listener which is asynchronously notified when channel can be
read from.
|
ChannelAcceptor |
newChannelAcceptor(SocketAddress localAddress) |
ChannelConnector |
newChannelConnector(SocketAddress remoteAddress) |
ChannelConnector |
newChannelConnector(SocketAddress remoteAddress,
SocketAddress localAddress) |
void |
outputNotify(SocketChannel channel,
Channel.Listener listener)
Register a listener which is asynchronously notified when channel can be
written to.
|
void |
selectLoop()
Perform socket selection, returning normally only when selector is closed.
|
public RecyclableSocketChannelSelector(IOExecutor executor) throws IOException
IOExceptionpublic void selectLoop()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic ChannelAcceptor newChannelAcceptor(SocketAddress localAddress) throws IOException
IOExceptionpublic ChannelConnector newChannelConnector(SocketAddress remoteAddress)
public ChannelConnector newChannelConnector(SocketAddress remoteAddress, SocketAddress localAddress)
public void inputNotify(SocketChannel channel, Channel.Listener listener)
inputNotify in interface SocketChannelSelectorpublic void outputNotify(SocketChannel channel, Channel.Listener listener)
outputNotify in interface SocketChannelSelectorpublic IOExecutor executor()
executor in interface SocketChannelSelectorCopyright © 2006–2015 Cojen. All rights reserved.