Package io.netty.channel.uring
Class IoUringSharedIovArray
- java.lang.Object
-
- io.netty.channel.uring.IoUringSharedIovArray
-
final class IoUringSharedIovArray extends java.lang.ObjectThe iovec memory of anIoUringIoHandler, shared by all writes until the next submit.Each write gets its own empty
IovArraythat starts after the entries of the previous writes, so theIOV_MAXlimit of anIovArrayapplies to each write and not to all of them together.
-
-
Field Summary
Fields Modifier and Type Field Description private CleanableDirectBuffercleanableprivate intcurrentprivate ByteBufinternalBufferprivate IovArraylastprivate intnumEntries
-
Constructor Summary
Constructors Constructor Description IoUringSharedIovArray(int numEntries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (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 intnextStart()(package private) voidrelease()
-
-
-
Field Detail
-
cleanable
private final CleanableDirectBuffer cleanable
-
internalBuffer
private final ByteBuf internalBuffer
-
numEntries
private final int numEntries
-
current
private int current
-
last
private IovArray last
-
-