Class IOUringDatagramChannel.IOUringDatagramChannelUnsafe
java.lang.Object
io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe
io.netty.incubator.channel.uring.IOUringDatagramChannel.IOUringDatagramChannelUnsafe
- All Implemented Interfaces:
io.netty.channel.Channel.Unsafe
- Enclosing class:
IOUringDatagramChannel
final class IOUringDatagramChannel.IOUringDatagramChannelUnsafe
extends AbstractIOUringChannel.AbstractUringUnsafe
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate io.netty.buffer.ByteBufprivate final MsgHdrMemoryArrayprivate final MsgHdrMemoryArrayprivate final int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidconnectComplete(int res) Connect was completed.private voidreadComplete(io.netty.channel.ChannelPipeline pipeline, IOUringRecvByteAllocatorHandle allocHandle, io.netty.buffer.ByteBuf byteBuf, int res) protected voidreadComplete0(int res, int data, int outstanding) Called once a read was completed.private voidrecvmsgComplete(io.netty.channel.ChannelPipeline pipeline, IOUringRecvByteAllocatorHandle allocHandle, io.netty.buffer.ByteBuf byteBuf, int res, int idx, int outstanding) (package private) voidprivate booleanremoveFromOutboundBuffer(io.netty.channel.ChannelOutboundBuffer outboundBuffer, int res, String errormsg) protected intSchedule a read and returns the number ofAbstractIOUringChannel.AbstractUringUnsafe.readComplete(int, int)calls that are expected because of the scheduled read.private intscheduleRecvmsg(io.netty.buffer.ByteBuf byteBuf, int numDatagram, int datagramSize) private booleanscheduleRecvmsg0(IOUringSubmissionQueue submissionQueue, long bufferAddress, int bufferLength) private booleanscheduleSendmsg(InetSocketAddress remoteAddress, long bufferAddress, int bufferLength, int segmentSize) private booleanscheduleWrite(Object msg, boolean forceSendmsg) protected intscheduleWriteMultiple(io.netty.channel.ChannelOutboundBuffer in) Schedule the write of multiple messages in theChannelOutboundBufferand returns the number ofAbstractIOUringChannel.AbstractUringUnsafe.writeComplete(int, int)calls that are expected because of the scheduled write.protected intSchedule the write of a single message and returns the number ofAbstractIOUringChannel.AbstractUringUnsafe.writeComplete(int, int)calls that are expected because of the scheduled write(package private) booleanwriteComplete0(int res, int data, int outstanding) Called once a write was completed.Methods inherited from class AbstractIOUringChannel.AbstractUringUnsafe
close, connect, flush0, newIOUringHandle, pollIn, pollOut, pollRdHup, processDelayedClose, readComplete, recvBufAllocHandle, schedulePollIn, scheduleRead, shutdownInput, writeComplete
-
Field Details
-
recvmsgHdrs
-
sendmsgHdrs
-
sendmsgResArray
private final int[] sendmsgResArray -
writeProcessor
-
readBuffer
private io.netty.buffer.ByteBuf readBuffer
-
-
Constructor Details
-
IOUringDatagramChannelUnsafe
IOUringDatagramChannelUnsafe()
-
-
Method Details
-
releaseBuffers
void releaseBuffers() -
readComplete0
protected void readComplete0(int res, int data, int outstanding) Description copied from class:AbstractIOUringChannel.AbstractUringUnsafeCalled once a read was completed.- Specified by:
readComplete0in classAbstractIOUringChannel.AbstractUringUnsafe
-
readComplete
private void readComplete(io.netty.channel.ChannelPipeline pipeline, IOUringRecvByteAllocatorHandle allocHandle, io.netty.buffer.ByteBuf byteBuf, int res) throws IOException - Throws:
IOException
-
recvmsgComplete
private void recvmsgComplete(io.netty.channel.ChannelPipeline pipeline, IOUringRecvByteAllocatorHandle allocHandle, io.netty.buffer.ByteBuf byteBuf, int res, int idx, int outstanding) throws IOException - Throws:
IOException
-
scheduleRead0
protected int scheduleRead0()Description copied from class:AbstractIOUringChannel.AbstractUringUnsafeSchedule a read and returns the number ofAbstractIOUringChannel.AbstractUringUnsafe.readComplete(int, int)calls that are expected because of the scheduled read.- Specified by:
scheduleRead0in classAbstractIOUringChannel.AbstractUringUnsafe
-
scheduleRecvmsg
private int scheduleRecvmsg(io.netty.buffer.ByteBuf byteBuf, int numDatagram, int datagramSize) -
scheduleRecvmsg0
private boolean scheduleRecvmsg0(IOUringSubmissionQueue submissionQueue, long bufferAddress, int bufferLength) -
writeComplete0
boolean writeComplete0(int res, int data, int outstanding) Description copied from class:AbstractIOUringChannel.AbstractUringUnsafeCalled once a write was completed.- Specified by:
writeComplete0in classAbstractIOUringChannel.AbstractUringUnsafe
-
removeFromOutboundBuffer
private boolean removeFromOutboundBuffer(io.netty.channel.ChannelOutboundBuffer outboundBuffer, int res, String errormsg) -
connectComplete
void connectComplete(int res) Description copied from class:AbstractIOUringChannel.AbstractUringUnsafeConnect was completed.- Overrides:
connectCompletein classAbstractIOUringChannel.AbstractUringUnsafe
-
scheduleWriteMultiple
protected int scheduleWriteMultiple(io.netty.channel.ChannelOutboundBuffer in) Description copied from class:AbstractIOUringChannel.AbstractUringUnsafeSchedule the write of multiple messages in theChannelOutboundBufferand returns the number ofAbstractIOUringChannel.AbstractUringUnsafe.writeComplete(int, int)calls that are expected because of the scheduled write.- Specified by:
scheduleWriteMultiplein classAbstractIOUringChannel.AbstractUringUnsafe
-
scheduleWriteSingle
Description copied from class:AbstractIOUringChannel.AbstractUringUnsafeSchedule the write of a single message and returns the number ofAbstractIOUringChannel.AbstractUringUnsafe.writeComplete(int, int)calls that are expected because of the scheduled write- Specified by:
scheduleWriteSinglein classAbstractIOUringChannel.AbstractUringUnsafe
-
scheduleWrite
-
scheduleSendmsg
private boolean scheduleSendmsg(InetSocketAddress remoteAddress, long bufferAddress, int bufferLength, int segmentSize)
-