Class IoUringIoHandler.DefaultIoUringIoRegistration
java.lang.Object
io.netty.channel.uring.IoUringIoHandler.DefaultIoUringIoRegistration
- All Implemented Interfaces:
IoRegistration
- Enclosing class:
IoUringIoHandler
private final class IoUringIoHandler.DefaultIoUringIoRegistration
extends Object
implements IoRegistration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicBooleanprivate final IoUringIoEventprivate final ThreadAwareExecutor(package private) final IoUringIoHandleprivate intprivate intprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionDefaultIoUringIoRegistration(ThreadAwareExecutor executor, IoUringIoHandle handle) -
Method Summary
Modifier and TypeMethodDescription<T> TImplementation specific attachment, which might benull.booleancancel()Cancel the registration.private booleancanUseFastPath(long userData) (package private) voidclose()private intfd()(package private) voidhandle(int res, int flags, byte op, long userData, ByteBuffer extraCqeData) booleanisValid()Returnstrueif the registration is still valid.private voidremove()(package private) voidsetId(int id) longSubmit theIoOpsto the registration.private voidsubmitFastPath0(IoUringIoOps ioOps, long seq) private voidsubmitSlowPath0(IoUringIoOps ioOps, long token, long userData) private void
-
Field Details
-
canceled
-
executor
-
event
-
handle
-
removeLater
private boolean removeLater -
outstandingCompletions
private int outstandingCompletions -
id
private int id
-
-
Constructor Details
-
DefaultIoUringIoRegistration
DefaultIoUringIoRegistration(ThreadAwareExecutor executor, IoUringIoHandle handle)
-
-
Method Details
-
setId
void setId(int id) -
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).
-
submitFastPath0
-
submitSlowPath0
-
canUseFastPath
private boolean canUseFastPath(long userData) -
fd
private int fd() -
attachment
public <T> T attachment()Description copied from interface:IoRegistrationImplementation specific attachment, which might benull.- Specified by:
attachmentin interfaceIoRegistration- Returns:
- attachment.
-
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.
-
tryRemove
private void tryRemove() -
remove
private void remove() -
close
void close() -
handle
-