public interface NioTask<C extends SelectableChannel>
NioEventLoop when a SelectableChannel becomes ready.| Modifier and Type | Method and Description |
|---|---|
void |
channelReady(C ch,
SelectionKey key)
Invoked when the
SelectableChannel has been selected by the Selector. |
void |
channelUnregistered(C ch)
Invoked when the
SelectionKey of the specified SelectableChannel has been cancelled and thus
this NioTask will not be notified anymore. |
void channelReady(C ch, SelectionKey key) throws Exception
SelectableChannel has been selected by the Selector.Exceptionvoid channelUnregistered(C ch) throws Exception
SelectionKey of the specified SelectableChannel has been cancelled and thus
this NioTask will not be notified anymore.ExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.