Package io.netty.channel
Interface IoRegistration
- All Known Implementing Classes:
EpollIoHandler.DefaultEpollIoRegistration,IoUringIoHandler.DefaultIoUringIoRegistration,KQueueIoHandler.DefaultKqueueIoRegistration,LocalIoHandler.LocalIoRegistration,NioIoHandler.DefaultNioRegistration,SingleThreadIoEventLoop.IoRegistrationWrapper
public interface IoRegistration
A registration for IO.
-
Method Summary
-
Method Details
-
attachment
<T> T attachment()Implementation specific attachment, which might benull.- Returns:
- attachment.
-
submit
Submit theIoOpsto the registration.- Parameters:
ops- ops.- Returns:
- an identifier for the operation, which might be unique or not (depending on the implementation).
-
isValid
boolean isValid()- Returns:
- valid.
-
cancel
boolean cancel()Cancel the registration.- Returns:
trueif cancellation was successful,falseotherwise.
-