Package io.netty.channel
Interface IoHandle
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Subinterfaces:
EpollIoHandle
,IoUringIoHandle
,KQueueIoHandle
,NioIoHandle
- All Known Implementing Classes:
AbstractNioByteChannel.NioByteUnsafe
,AbstractNioChannel.AbstractNioUnsafe
,NioSelectableChannelIoHandle
public interface IoHandle extends java.lang.AutoCloseable
A handle that can be registered to aIoHandler
. All methods must be called from theThreadAwareExecutor
thread (which meansThreadAwareExecutor.isExecutorThread(Thread)
must returntrue
)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handle(IoRegistration registration, IoEvent ioEvent)
Be called once there is something to handle.
-
-
-
Method Detail
-
handle
void handle(IoRegistration registration, IoEvent ioEvent)
Be called once there is something to handle.- Parameters:
registration
- theIoRegistration
for thisIoHandle
.ioEvent
- theIoEvent
that must be handled. TheIoEvent
is only valid while this method is executed and so must not escape it.
-
-