Module io.netty5.transport
Package io.netty5.channel.nio
Class NioSelectableChannelHandle<S extends SelectableChannel>
- java.lang.Object
-
- io.netty5.channel.nio.NioSelectableChannelHandle<S>
-
- All Implemented Interfaces:
IoHandle
public final class NioSelectableChannelHandle<S extends SelectableChannel> extends Object implements IoHandle
Allows to create anIoHandlefor aSelectableChannel, not necessarily created by Netty. ThisIoHandlecan be used together withNioHandlerand so have events dispatched for theSelectableChannel.
-
-
Constructor Summary
Constructors Constructor Description NioSelectableChannelHandle(S channel, int interestOps, BiConsumer<S,SelectionKey> keyProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRegistered()Return true if registered already.
-
-
-
Constructor Detail
-
NioSelectableChannelHandle
public NioSelectableChannelHandle(S channel, int interestOps, BiConsumer<S,SelectionKey> keyProcessor)
-
-
Method Detail
-
isRegistered
public boolean isRegistered()
Description copied from interface:IoHandleReturn true if registered already.- Specified by:
isRegisteredin interfaceIoHandle- Returns:
trueif registered,falseotherwise
-
-