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