Package io.netty.incubator.channel.uring
Class AbstractIOUringChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.incubator.channel.uring.AbstractIOUringChannel
- All Implemented Interfaces:
io.netty.channel.Channel,io.netty.channel.ChannelOutboundInvoker,io.netty.channel.unix.UnixChannel,io.netty.util.AttributeMap,Comparable<io.netty.channel.Channel>
- Direct Known Subclasses:
AbstractIOUringServerChannel,AbstractIOUringStreamChannel,IOUringDatagramChannel
abstract class AbstractIOUringChannel
extends io.netty.channel.AbstractChannel
implements io.netty.channel.unix.UnixChannel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classNested classes/interfaces inherited from class io.netty.channel.AbstractChannel
io.netty.channel.AbstractChannel.AbstractUnsafeNested classes/interfaces inherited from interface io.netty.channel.Channel
io.netty.channel.Channel.Unsafe -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprivate static final intprivate io.netty.channel.ChannelPromiseThe future of the current connection attempt.private ScheduledFuture<?> private io.netty.channel.ChannelPromiseprivate booleanprivate byteprivate SocketAddressprivate static final io.netty.util.internal.logging.InternalLoggerprivate static final io.netty.channel.ChannelMetadataprivate MsgHdrMemoryArrayprivate shortprivate shortprivate static final intprivate static final intprivate static final intprivate static final intprivate SocketAddressprivate ByteBufferprivate SocketAddress(package private) final LinuxSocketprivate IOUringSubmissionQueueprivate static final int -
Constructor Summary
ConstructorsConstructorDescriptionAbstractIOUringChannel(io.netty.channel.Channel parent, LinuxSocket socket) AbstractIOUringChannel(io.netty.channel.Channel parent, LinuxSocket socket, boolean active) AbstractIOUringChannel(io.netty.channel.Channel parent, LinuxSocket fd, SocketAddress remote) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprotected static voidvoidclearPollFlag(int pollMask) private voidprotected voidprotected voiddoBind(SocketAddress local) protected voiddoClose()protected final voidprotected voidprotected voidprotected voiddoWrite(io.netty.channel.ChannelOutboundBuffer in) io.netty.channel.unix.FileDescriptorfd()protected Objectprivate voidprivate void(package private) boolean(package private) AbstractIOUringChannel.AbstractUringUnsafebooleanisActive()private static booleanisAllowHalfClosure(io.netty.channel.ChannelConfig config) protected booleanisCompatible(io.netty.channel.EventLoop loop) booleanisOpen()protected SocketAddressio.netty.channel.ChannelMetadatametadata()protected final io.netty.buffer.ByteBufnewDirectBuffer(io.netty.buffer.ByteBuf buf) protected final io.netty.buffer.ByteBufnewDirectBuffer(Object holder, io.netty.buffer.ByteBuf buf) private static io.netty.buffer.ByteBufnewDirectBuffer0(Object holder, io.netty.buffer.ByteBuf buf, io.netty.buffer.ByteBufAllocator alloc, int capacity) protected abstract AbstractIOUringChannel.AbstractUringUnsafeprotected SocketAddress(package private) final voidprivate void(package private) final voidprivate intscheduleWrite(io.netty.channel.ChannelOutboundBuffer in) private booleanshouldBreakIoUringInReady(io.netty.channel.ChannelConfig config) (package private) IOUringSubmissionQueueprivate voidsubmitConnect(InetSocketAddress inetSocketAddress) Methods inherited from class io.netty.channel.AbstractChannel
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doShutdownOutput, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, toString, unsafe, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlushMethods inherited from class io.netty.util.DefaultAttributeMap
attr, hasAttrMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.util.AttributeMap
attr, hasAttrMethods inherited from interface io.netty.channel.Channel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, config, eventLoop, flush, id, isRegistered, isWritable, localAddress, parent, pipeline, read, remoteAddress, unsafeMethods inherited from interface io.netty.channel.ChannelOutboundInvoker
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlushMethods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
logger
private static final io.netty.util.internal.logging.InternalLogger logger -
METADATA
private static final io.netty.channel.ChannelMetadata METADATA -
socket
-
active
protected volatile boolean active -
POLL_IN_SCHEDULED
private static final int POLL_IN_SCHEDULED- See Also:
-
POLL_OUT_SCHEDULED
private static final int POLL_OUT_SCHEDULED- See Also:
-
POLL_RDHUP_SCHEDULED
private static final int POLL_RDHUP_SCHEDULED- See Also:
-
WRITE_SCHEDULED
private static final int WRITE_SCHEDULED- See Also:
-
READ_SCHEDULED
private static final int READ_SCHEDULED- See Also:
-
CONNECT_SCHEDULED
private static final int CONNECT_SCHEDULED- See Also:
-
ioState
private byte ioState -
numOutstandingWrites
private short numOutstandingWrites -
numOutstandingReads
private short numOutstandingReads -
delayedClose
private io.netty.channel.ChannelPromise delayedClose -
inputClosedSeenErrorOnRead
private boolean inputClosedSeenErrorOnRead -
connectPromise
private io.netty.channel.ChannelPromise connectPromiseThe future of the current connection attempt. If not null, subsequent connection attempts will fail. -
connectTimeoutFuture
-
requestedRemoteAddress
-
remoteAddressMemory
-
msgHdrMemoryArray
-
submissionQueue
-
local
-
remote
-
-
Constructor Details
-
AbstractIOUringChannel
AbstractIOUringChannel(io.netty.channel.Channel parent, LinuxSocket socket) -
AbstractIOUringChannel
AbstractIOUringChannel(io.netty.channel.Channel parent, LinuxSocket socket, boolean active) -
AbstractIOUringChannel
AbstractIOUringChannel(io.netty.channel.Channel parent, LinuxSocket fd, SocketAddress remote)
-
-
Method Details
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceio.netty.channel.Channel
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceio.netty.channel.Channel
-
metadata
public io.netty.channel.ChannelMetadata metadata()- Specified by:
metadatain interfaceio.netty.channel.Channel
-
fd
public io.netty.channel.unix.FileDescriptor fd()- Specified by:
fdin interfaceio.netty.channel.unix.UnixChannel
-
newUnsafe
- Specified by:
newUnsafein classio.netty.channel.AbstractChannel
-
ioUringUnsafe
AbstractIOUringChannel.AbstractUringUnsafe ioUringUnsafe() -
isCompatible
protected boolean isCompatible(io.netty.channel.EventLoop loop) - Specified by:
isCompatiblein classio.netty.channel.AbstractChannel
-
newDirectBuffer
protected final io.netty.buffer.ByteBuf newDirectBuffer(io.netty.buffer.ByteBuf buf) -
newDirectBuffer
-
newDirectBuffer0
private static io.netty.buffer.ByteBuf newDirectBuffer0(Object holder, io.netty.buffer.ByteBuf buf, io.netty.buffer.ByteBufAllocator alloc, int capacity) -
doDisconnect
- Specified by:
doDisconnectin classio.netty.channel.AbstractChannel- Throws:
Exception
-
submissionQueue
IOUringSubmissionQueue submissionQueue() -
freeRemoteAddressMemory
private void freeRemoteAddressMemory() -
freeMsgHdrArray
private void freeMsgHdrArray() -
ioScheduled
boolean ioScheduled() -
doClose
- Specified by:
doClosein classio.netty.channel.AbstractChannel- Throws:
Exception
-
doBeginRead
protected void doBeginRead()- Specified by:
doBeginReadin classio.netty.channel.AbstractChannel
-
doWrite
protected void doWrite(io.netty.channel.ChannelOutboundBuffer in) - Specified by:
doWritein classio.netty.channel.AbstractChannel
-
scheduleWrite
private int scheduleWrite(io.netty.channel.ChannelOutboundBuffer in) -
schedulePollOut
private void schedulePollOut() -
schedulePollRdHup
final void schedulePollRdHup() -
resetCachedAddresses
final void resetCachedAddresses() -
submitConnect
-
filterOutboundMessage
- Overrides:
filterOutboundMessagein classio.netty.channel.AbstractChannel
-
doRegister
- Overrides:
doRegisterin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doDeregister
protected final void doDeregister()- Overrides:
doDeregisterin classio.netty.channel.AbstractChannel
-
doBind
- Specified by:
doBindin classio.netty.channel.AbstractChannel- Throws:
Exception
-
checkResolvable
-
localAddress0
- Specified by:
localAddress0in classio.netty.channel.AbstractChannel
-
remoteAddress0
- Specified by:
remoteAddress0in classio.netty.channel.AbstractChannel
-
isAllowHalfClosure
private static boolean isAllowHalfClosure(io.netty.channel.ChannelConfig config) -
cancelConnectTimeoutFuture
private void cancelConnectTimeoutFuture() -
computeRemote
private void computeRemote() -
shouldBreakIoUringInReady
private boolean shouldBreakIoUringInReady(io.netty.channel.ChannelConfig config) -
clearPollFlag
public void clearPollFlag(int pollMask)
-