Class EpollIoHandler.DefaultEpollIoRegistration
java.lang.Object
io.netty.channel.epoll.EpollIoHandler.DefaultEpollIoRegistration
- All Implemented Interfaces:
IoRegistration
- Enclosing class:
EpollIoHandler
private final class EpollIoHandler.DefaultEpollIoRegistration
extends Object
implements IoRegistration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ThreadAwareExecutor(package private) final EpollIoHandleprivate EpollIoHandler.RegistrationState -
Constructor Summary
ConstructorsConstructorDescriptionDefaultEpollIoRegistration(ThreadAwareExecutor executor, EpollIoHandle handle) -
Method Summary
Modifier and TypeMethodDescription<T> TImplementation specific attachment, which might benull.booleancancel()Cancel the registration.private voidcancel0()(package private) voidclose()(package private) voidhandle(long ev) booleanisValid()Returnstrueif the registration is still valid.longSubmit theIoOpsto the registration.
-
Field Details
-
executor
-
state
-
handle
-
-
Constructor Details
-
DefaultEpollIoRegistration
DefaultEpollIoRegistration(ThreadAwareExecutor executor, EpollIoHandle handle)
-
-
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.
-
cancel0
private void cancel0() -
close
void close() -
handle
void handle(long ev)
-