Class SingleThreadIoEventLoop.IoRegistrationWrapper
java.lang.Object
io.netty.channel.SingleThreadIoEventLoop.IoRegistrationWrapper
- All Implemented Interfaces:
IoRegistration
- Enclosing class:
SingleThreadIoEventLoop
private final class SingleThreadIoEventLoop.IoRegistrationWrapper
extends Object
implements IoRegistration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
registration
-
-
Constructor Details
-
IoRegistrationWrapper
IoRegistrationWrapper(IoRegistration registration)
-
-
Method Details
-
attachment
public <T> T attachment()Description copied from interface:IoRegistrationImplementation specific attachment, which might benull.- Specified by:
attachmentin interfaceIoRegistration- Returns:
- attachment.
-
submit
Description copied from interface:IoRegistrationSubmit theIoOpsto the registration.- Specified by:
submitin interfaceIoRegistration- Parameters:
ops- ops.- Returns:
- an identifier for the operation, which might be unique or not (depending on the implementation).
-
isValid
public boolean isValid()Description copied from interface:IoRegistrationReturnstrueif the registration is still valid. OnceIoRegistration.cancel()is called this will returnfalse.- Specified by:
isValidin interfaceIoRegistration- Returns:
- valid.
-
cancel
public boolean cancel()Description copied from interface:IoRegistrationCancel the registration.- Specified by:
cancelin interfaceIoRegistration- Returns:
trueif cancellation was successful,falseotherwise.
-