Class AbstractIoUringStreamChannel.IovBufferCollector
java.lang.Object
io.netty.channel.uring.AbstractIoUringStreamChannel.IovBufferCollector
- All Implemented Interfaces:
ChannelOutboundBuffer.MessageProcessor
- Enclosing class:
AbstractIoUringStreamChannel
static final class AbstractIoUringStreamChannel.IovBufferCollector
extends java.lang.Object
implements ChannelOutboundBuffer.MessageProcessor
Collects and retains the messages backing a submitted iov prefix. Keep the non-empty NIO segment
counting aligned with
IovArray.add(ByteBuf, int, int). The readable ranges must still match
those used at submission; the shared iov memory itself may already have been reused.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) java.util.List<ReferenceCounted> collect(ChannelOutboundBuffer buffer, int count) booleanprocessMessage(java.lang.Object msg) Will be called for each flushed message until it either there are no more flushed messages or this method returnsfalse.(package private) static intremainingIovs(ByteBuf buf, int remaining) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
buffers
-
remaining
private int remaining
-
-
Constructor Details
-
IovBufferCollector
IovBufferCollector()
-
-
Method Details
-
collect
-
processMessage
public boolean processMessage(java.lang.Object msg) Description copied from interface:ChannelOutboundBuffer.MessageProcessorWill be called for each flushed message until it either there are no more flushed messages or this method returnsfalse.- Specified by:
processMessagein interfaceChannelOutboundBuffer.MessageProcessor
-
remainingIovs
-