Class IoUringSharedIovArray
java.lang.Object
io.netty.channel.uring.IoUringSharedIovArray
final class IoUringSharedIovArray
extends java.lang.Object
The iovec memory of an
IoUringIoHandler, shared by all writes until the next submit.
Each write gets its own empty IovArray that starts after the entries of the previous writes, so the
IOV_MAX limit of an IovArray applies to each write and not to all of them together.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CleanableDirectBufferprivate intprivate final ByteBufprivate IovArrayprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidclear()Must only be called once the kernel does not read the entries anymore, which is after the submit.(package private) booleanisFull()Returnstrueif the next write can not add any entry.(package private) IovArraynext()Returns the emptyIovArrayfor the next write.private int(package private) voidrelease()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
cleanable
-
internalBuffer
-
numEntries
private final int numEntries -
current
private int current -
last
-
-
Constructor Details
-
IoUringSharedIovArray
IoUringSharedIovArray(int numEntries)
-
-
Method Details
-
nextStart
private int nextStart() -
isFull
boolean isFull()Returnstrueif the next write can not add any entry. -
next
-
clear
void clear()Must only be called once the kernel does not read the entries anymore, which is after the submit. -
release
void release()
-