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 anIoHandle
for aSelectableChannel
, not necessarily created by Netty. ThisIoHandle
can be used together withNioHandler
and 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 boolean
isRegistered()
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:IoHandle
Return true if registered already.- Specified by:
isRegistered
in interfaceIoHandle
- Returns:
true
if registered,false
otherwise
-
-