public abstract class NioSelectableChannelIoHandle<S extends SelectableChannel> extends Object implements IoHandle, NioIoHandle
IoHandle for a SelectableChannel, not necessarily created by Netty. This
IoHandle can be used together with NioIoHandler and so have events dispatched for
the SelectableChannel.| Constructor and Description |
|---|
NioSelectableChannelIoHandle(S channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
deregister(S channel) |
void |
handle(IoRegistration registration,
IoEvent ioEvent)
Be called once there is something to handle.
|
protected abstract void |
handle(S channel,
SelectionKey key) |
SelectableChannel |
selectableChannel()
The underlying
SelectableChannel. |
public NioSelectableChannelIoHandle(S channel)
public void handle(IoRegistration registration, IoEvent ioEvent)
IoHandlepublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic SelectableChannel selectableChannel()
NioIoHandleSelectableChannel.selectableChannel in interface NioIoHandleprotected abstract void handle(S channel, SelectionKey key)
protected void deregister(S channel)
Copyright © 2008–2025 The Netty Project. All rights reserved.