Package io.netty.incubator.channel.uring
Class AbstractIOUringStreamChannel.IOUringStreamUnsafe
- java.lang.Object
-
- io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe
-
- io.netty.incubator.channel.uring.AbstractIOUringStreamChannel.IOUringStreamUnsafe
-
- All Implemented Interfaces:
io.netty.channel.Channel.Unsafe
- Enclosing class:
- AbstractIOUringStreamChannel
private final class AbstractIOUringStreamChannel.IOUringStreamUnsafe extends AbstractIOUringChannel.AbstractUringUnsafe
-
-
Field Summary
Fields Modifier and Type Field Description private io.netty.channel.unix.IovArrayiovArrayprivate io.netty.buffer.ByteBufreadBuffer
-
Constructor Summary
Constructors Modifier Constructor Description privateIOUringStreamUnsafe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidhandleReadException(io.netty.channel.ChannelPipeline pipeline, io.netty.buffer.ByteBuf byteBuf, java.lang.Throwable cause, boolean close, IOUringRecvByteAllocatorHandle allocHandle)protected java.util.concurrent.ExecutorprepareToClose()protected voidreadComplete0(int res, int data, int outstanding)Called once a read was completed.protected intscheduleRead0()Schedule a read and returns the number ofAbstractIOUringChannel.AbstractUringUnsafe.readComplete(int, int)calls that are expected because of the scheduled read.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 intscheduleWriteSingle(java.lang.Object msg)Schedule 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 io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe
close, connect, connectComplete, flush0, newIOUringHandle, pollIn, pollOut, pollRdHup, processDelayedClose, readComplete, recvBufAllocHandle, schedulePollIn, scheduleRead, shutdownInput, writeComplete
-
-
-
-
Method Detail
-
prepareToClose
protected java.util.concurrent.Executor prepareToClose()
-
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
protected int scheduleWriteSingle(java.lang.Object msg)
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
-
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
-
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
-
handleReadException
private void handleReadException(io.netty.channel.ChannelPipeline pipeline, io.netty.buffer.ByteBuf byteBuf, java.lang.Throwable cause, boolean close, IOUringRecvByteAllocatorHandle allocHandle)
-
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
-
-