Top Inners Fields Constructors Methods
io.netty.incubator.channel.uring

pack-priv abstract Class AbstractIOUringStreamChannel

extends AbstractIOUringChannel
implements DuplexChannel
Class Inheritance
All Implemented Interfaces
io.netty.channel.socket.DuplexChannel, io.netty.channel.Channel, java.lang.Comparable, io.netty.channel.ChannelOutboundInvoker, io.netty.util.AttributeMap
Known Direct Subclasses
io.netty.incubator.channel.uring.IOUringSocketChannel
Imports
io.netty.buffer.ByteBuf, io.netty.channel.Channel, .ChannelFuture, .ChannelFutureListener, .ChannelOutboundBuffer, .ChannelPipeline, .ChannelPromise, .EventLoop, io.netty.channel.socket.DuplexChannel, io.netty.channel.unix.IovArray, .Limits, io.netty.util.internal.UnstableApi, io.netty.util.internal.logging.InternalLogger, .InternalLoggerFactory, java.net.SocketAddress, java.io.IOException, java.util.concurrent.Executor

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private static final InternalLogger
Inherited from io.netty.incubator.channel.uring.AbstractIOUringChannel:
activesocket

Constructor Summary

AccessConstructor and Description
pack-priv
protected
AbstractIOUringStreamChannel(Channel parent, LinuxSocket socket, boolean active)

pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
doRegister()

Overrides io.netty.incubator.channel.uring.AbstractIOUringChannel.doRegister.

Is called after the Channel is registered with its EventLoop as part of the register process.
protected final void
doShutdownOutput()

Overrides io.netty.channel.AbstractChannel.doShutdownOutput.

Called when conditions justify shutting down the output portion of the channel.
public boolean
isInputShutdown()

Implements io.netty.channel.socket.DuplexChannel.isInputShutdown.

Returns true if and only if the remote peer shut down its output so that no more data is received from this channel.
public boolean
public boolean
isShutdown()

Implements io.netty.channel.socket.DuplexChannel.isShutdown.

Determine if both the input and output of this channel have been shutdown.
protected AbstractIOUringChannel.AbstractUringUnsafe
newUnsafe()

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.newUnsafe.

Create a new AbstractUnsafe instance which will be used for the life-time of the Channel
public ChannelFuture
shutdown()

Implements io.netty.channel.socket.DuplexChannel.shutdown.

Will shutdown the input and output sides of this channel.
public ChannelFuture
shutdown(final ChannelPromise
will be completed when both shutdown operations complete.
promise
)

Implements io.netty.channel.socket.DuplexChannel.shutdown.

Will shutdown the input and output sides of this channel.
private static void
shutdownDone(ChannelFuture shutdownOutputFuture, ChannelFuture shutdownInputFuture, ChannelPromise promise)

public ChannelFuture
public ChannelFuture
shutdownInput(final ChannelPromise promise)

Implements io.netty.channel.socket.DuplexChannel.shutdownInput.

Will shutdown the input and notify ChannelPromise.
private void
public ChannelFuture
public ChannelFuture
shutdownOutput(final ChannelPromise promise)

Implements io.netty.channel.socket.DuplexChannel.shutdownOutput.

Will shutdown the output and notify ChannelPromise.
private void
shutdownOutputDone(final ChannelFuture shutdownOutputFuture, final ChannelPromise promise)

Inherited from io.netty.incubator.channel.uring.AbstractIOUringChannel:
checkResolvableclearPollFlagdoBeginReaddoBinddoClosedoDeregisterdoDisconnectdoWritefdfilterOutboundMessageioScheduledioUringUnsafeisActiveisCompatibleisOpenlocalAddress0metadatanewDirectBuffernewDirectBufferremoteAddress0resetCachedAddressesschedulePollRdHupsubmissionQueue

Field Detail

loggerback to summary
private static final InternalLogger logger

Hides io.netty.incubator.channel.uring.AbstractIOUringChannel.logger.

Constructor Detail

AbstractIOUringStreamChannelback to summary
pack-priv AbstractIOUringStreamChannel(Channel parent, LinuxSocket socket)
AbstractIOUringStreamChannelback to summary
protected AbstractIOUringStreamChannel(Channel parent, LinuxSocket socket, boolean active)
AbstractIOUringStreamChannelback to summary
pack-priv AbstractIOUringStreamChannel(Channel parent, LinuxSocket fd, SocketAddress remote)

Method Detail

doRegisterback to summary
protected void doRegister() throws Exception

Overrides io.netty.incubator.channel.uring.AbstractIOUringChannel.doRegister.

Doc from io.netty.channel.AbstractChannel.doRegister.

Is called after the Channel is registered with its EventLoop as part of the register process. Sub-classes may override this method

Annotations
@Override
doShutdownOutputback to summary
protected final void doShutdownOutput() throws Exception

Overrides io.netty.channel.AbstractChannel.doShutdownOutput.

Doc from io.netty.channel.AbstractChannel.doShutdownOutput.

Called when conditions justify shutting down the output portion of the channel. This may happen if a write operation throws an exception.

Annotations
@UnstableApi
@Override
isInputShutdownback to summary
public boolean isInputShutdown()

Implements io.netty.channel.socket.DuplexChannel.isInputShutdown.

Doc from io.netty.channel.socket.DuplexChannel.isInputShutdown.

Returns true if and only if the remote peer shut down its output so that no more data is received from this channel. Note that the semantic of this method is different from that of Socket#shutdownInput() and Socket#isInputShutdown().

Annotations
@Override
isOutputShutdownback to summary
public boolean isOutputShutdown()

Implements io.netty.channel.socket.DuplexChannel.isOutputShutdown.

Annotations
@Override
isShutdownback to summary
public boolean isShutdown()

Implements io.netty.channel.socket.DuplexChannel.isShutdown.

Doc from io.netty.channel.socket.DuplexChannel.isShutdown.

Determine if both the input and output of this channel have been shutdown.

Annotations
@Override
newUnsafeback to summary
protected AbstractIOUringChannel.AbstractUringUnsafe newUnsafe()

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.newUnsafe.

Doc from io.netty.channel.AbstractChannel.newUnsafe.

Create a new AbstractUnsafe instance which will be used for the life-time of the Channel

Annotations
@Override
shutdownback to summary
public ChannelFuture shutdown()

Implements io.netty.channel.socket.DuplexChannel.shutdown.

Doc from io.netty.channel.socket.DuplexChannel.shutdown.

Will shutdown the input and output sides of this channel.

Returns:ChannelFuture

will be completed when both shutdown operations complete.

Annotations
@Override
shutdownback to summary
public ChannelFuture shutdown(final ChannelPromise promise)

Implements io.netty.channel.socket.DuplexChannel.shutdown.

Doc from io.netty.channel.socket.DuplexChannel.shutdown.

Will shutdown the input and output sides of this channel.

Parameters
promise:ChannelPromise

will be completed when both shutdown operations complete.

Returns:ChannelFuture

will be completed when both shutdown operations complete.

Annotations
@Override
shutdownDoneback to summary
private static void shutdownDone(ChannelFuture shutdownOutputFuture, ChannelFuture shutdownInputFuture, ChannelPromise promise)
shutdownInputback to summary
public ChannelFuture shutdownInput()

Implements io.netty.channel.socket.DuplexChannel.shutdownInput.

Annotations
@Override
shutdownInputback to summary
public ChannelFuture shutdownInput(final ChannelPromise promise)

Implements io.netty.channel.socket.DuplexChannel.shutdownInput.

Doc from io.netty.channel.socket.DuplexChannel.shutdownInput.

Will shutdown the input and notify ChannelPromise.

Annotations
@Override
shutdownInput0back to summary
private void shutdownInput0(final ChannelPromise promise)
shutdownOutputback to summary
public ChannelFuture shutdownOutput()

Implements io.netty.channel.socket.DuplexChannel.shutdownOutput.

Annotations
@Override
shutdownOutputback to summary
public ChannelFuture shutdownOutput(final ChannelPromise promise)

Implements io.netty.channel.socket.DuplexChannel.shutdownOutput.

Doc from io.netty.channel.socket.DuplexChannel.shutdownOutput.

Will shutdown the output and notify ChannelPromise.

Annotations
@Override
shutdownOutputDoneback to summary
private void shutdownOutputDone(final ChannelFuture shutdownOutputFuture, final ChannelPromise promise)
io.netty.incubator.channel.uring back to summary

private final Class AbstractIOUringStreamChannel.IOUringStreamUnsafe

extends AbstractUringUnsafe
Class Inheritance

Field Summary

Modifier and TypeField and Description
private IovArray
private ByteBuf

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private void
handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, Throwable cause, boolean close, IOUringRecvByteAllocatorHandle allocHandle)

Deprecated as a consequence of IOUringRecvByteAllocatorHandle being deprecated.
protected Executor
protected void
readComplete0(int res, int data, int outstanding)

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.readComplete0.

Called once a read was completed.
protected int
scheduleRead0()

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.scheduleRead0.

Schedule a read and returns the number of readComplete(int, int) calls that are expected because of the scheduled read.
protected int
scheduleWriteMultiple(ChannelOutboundBuffer in)

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.scheduleWriteMultiple.

Schedule the write of multiple messages in the ChannelOutboundBuffer and returns the number of writeComplete(int, int) calls that are expected because of the scheduled write.
protected int
scheduleWriteSingle(Object msg)

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.scheduleWriteSingle.

Schedule the write of a single message and returns the number of writeComplete(int, int) calls that are expected because of the scheduled write
pack-priv boolean
writeComplete0(int res, int data, int outstanding)

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.writeComplete0.

Called once a write was completed.
Inherited from io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe:
closeconnectconnectCompleteflush0newIOUringHandlepollInpollOutpollRdHupprocessDelayedClosereadCompleterecvBufAllocHandleschedulePollInscheduleReadshutdownInputwriteComplete

Field Detail

iovArrayback to summary
private IovArray iovArray
readBufferback to summary
private ByteBuf readBuffer

Constructor Detail

IOUringStreamUnsafeback to summary
private IOUringStreamUnsafe()

Method Detail

handleReadExceptionback to summary
private void handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, Throwable cause, boolean close, IOUringRecvByteAllocatorHandle allocHandle)

Deprecated

as a consequence of IOUringRecvByteAllocatorHandle being deprecated. See corresponding docs for further information.

prepareToCloseback to summary
protected Executor prepareToClose()

Overrides io.netty.channel.AbstractChannel.AbstractUnsafe.prepareToClose.

Doc from io.netty.channel.AbstractChannel.AbstractUnsafe.prepareToClose.

Prepares to close the Channel. If this method returns an Executor, the caller must call the Executor#execute(Runnable) method with a task that calls doClose() on the returned Executor. If this method returns null, doClose() must be called from the caller thread. (i.e. EventLoop)

Annotations
@Override
readComplete0back to summary
protected void readComplete0(int res, int data, int outstanding)

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.readComplete0.

Doc from io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.readComplete0.

Called once a read was completed.

Annotations
@Override
scheduleRead0back to summary
protected int scheduleRead0()

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.scheduleRead0.

Doc from io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.scheduleRead0.

Schedule a read and returns the number of readComplete(int, int) calls that are expected because of the scheduled read.

Annotations
@Override
scheduleWriteMultipleback to summary
protected int scheduleWriteMultiple(ChannelOutboundBuffer in)

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.scheduleWriteMultiple.

Doc from io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.scheduleWriteMultiple.

Schedule the write of multiple messages in the ChannelOutboundBuffer and returns the number of writeComplete(int, int) calls that are expected because of the scheduled write.

Annotations
@Override
scheduleWriteSingleback to summary
protected int scheduleWriteSingle(Object msg)

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.scheduleWriteSingle.

Doc from io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.scheduleWriteSingle.

Schedule the write of a single message and returns the number of writeComplete(int, int) calls that are expected because of the scheduled write

Annotations
@Override
writeComplete0back to summary
pack-priv boolean writeComplete0(int res, int data, int outstanding)

Implements abstract io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.writeComplete0.

Doc from io.netty.incubator.channel.uring.AbstractIOUringChannel.AbstractUringUnsafe.writeComplete0.

Called once a write was completed.

Annotations
@Override