Class IoUringSocketChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.uring.AbstractIoUringChannel
io.netty.channel.uring.AbstractIoUringStreamChannel
io.netty.channel.uring.IoUringSocketChannel
- All Implemented Interfaces:
Channel, ChannelOutboundInvoker, DuplexChannel, SocketChannel, UnixChannel, AttributeMap, Comparable<Channel>
public final class IoUringSocketChannel
extends AbstractIoUringStreamChannel
implements SocketChannel
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractIoUringStreamChannel
AbstractIoUringStreamChannel.IoUringStreamUnsafeNested classes/interfaces inherited from class AbstractIoUringChannel
AbstractIoUringChannel.AbstractUringUnsafeNested classes/interfaces inherited from class AbstractChannel
AbstractChannel.AbstractUnsafeNested classes/interfaces inherited from interface Channel
Channel.Unsafe -
Field Summary
FieldsFields inherited from class AbstractIoUringStreamChannel
readId, readOpCode, writeId, writeOpCodeFields inherited from class AbstractIoUringChannel
active, socket, writeTracker -
Constructor Summary
ConstructorsConstructorDescriptionIoUringSocketChannel(Channel parent, LinuxSocket fd) IoUringSocketChannel(Channel parent, LinuxSocket fd, SocketAddress remote) -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the configuration of this channel.Returns the local address where this channel is bound to.Create a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannelparent()Returns the parent of this channel.Returns the remote address where this channel is connected to.tcpInfo()Returns theTCP_INFOfor the current socket.tcpInfo(IoUringTcpInfo info) Updates and returns theTCP_INFOfor the current socket.Methods inherited from class AbstractIoUringStreamChannel
cancelOutstandingReads, cancelOutstandingWrites, doRegister, doShutdownOutput0, filterOutboundMessage, isInputShutdown, isOutputShutdown, isPollInFirst, isShutdown, isStreamSocket, metadata, shouldCompleteReadLoop, shutdown, shutdown, shutdownInput, shutdownInput, shutdownOutput, shutdownOutput, socketIsEmptyMethods inherited from class AbstractIoUringChannel
allowMultiShotPollIn, autoReadCleared, checkResolvable, doBeginRead, doBind, doClose, doDeregister, doDisconnect, doShutdownOutput, doWrite, fd, isActive, isCompatible, isOpen, localAddress0, newDirectBuffer, newDirectBuffer, nextOpsId, registration, remoteAddress0, resetCachedAddresses, schedulePollRdHup, scheduleWriteIfNeeded, submitAndRunNowMethods inherited from class AbstractChannel
closeFuture, compareTo, doRegister, equals, eventLoop, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, maxMessagesPerWrite, newChannelPipeline, newId, pipeline, toString, unsafe, validateFileRegion, voidPromiseMethods inherited from class DefaultAttributeMap
attr, hasAttrMethods inherited from interface AttributeMap
attr, hasAttrMethods inherited from interface Channel
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, getOption, id, isActive, isOpen, isRegistered, isWritable, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, pipeline, read, setOption, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushMethods inherited from interface Comparable
compareToMethods inherited from interface DuplexChannel
isInputShutdown, isOutputShutdown, isShutdown, shutdown, shutdown, shutdownInput, shutdownInput, shutdownOutput, shutdownOutput
-
Field Details
-
config
-
-
Constructor Details
-
IoUringSocketChannel
public IoUringSocketChannel() -
IoUringSocketChannel
IoUringSocketChannel(Channel parent, LinuxSocket fd) -
IoUringSocketChannel
IoUringSocketChannel(Channel parent, LinuxSocket fd, SocketAddress remote)
-
-
Method Details
-
tcpInfo
Returns theTCP_INFOfor the current socket. See man 7 tcp. -
tcpInfo
Updates and returns theTCP_INFOfor the current socket. See man 7 tcp. -
parent
Description copied from interface:ChannelReturns the parent of this channel.- Specified by:
parentin interfaceChannel- Specified by:
parentin interfaceSocketChannel- Overrides:
parentin classAbstractChannel- Returns:
- the parent channel.
nullif this channel does not have a parent channel.
-
config
Description copied from interface:ChannelReturns the configuration of this channel.- Specified by:
configin interfaceChannel- Specified by:
configin interfaceSocketChannel
-
remoteAddress
Description copied from interface:ChannelReturns the remote address where this channel is connected to. The returnedSocketAddressis supposed to be down-cast into more concrete type such asInetSocketAddressto retrieve the detailed information.- Specified by:
remoteAddressin interfaceChannel- Specified by:
remoteAddressin interfaceSocketChannel- Overrides:
remoteAddressin classAbstractChannel- Returns:
- the remote address of this channel.
nullif this channel is not connected. If this channel is not connected but it can receive messages from arbitrary remote addresses (e.g.DatagramChannel, useDefaultAddressedEnvelope.recipient()to determine the origination of the received message as this method will returnnull.
-
localAddress
Description copied from interface:ChannelReturns the local address where this channel is bound to. The returnedSocketAddressis supposed to be down-cast into more concrete type such asInetSocketAddressto retrieve the detailed information.- Specified by:
localAddressin interfaceChannel- Specified by:
localAddressin interfaceSocketChannel- Overrides:
localAddressin classAbstractChannel- Returns:
- the local address of this channel.
nullif this channel is not bound.
-
newUnsafe
Description copied from class:AbstractChannelCreate a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannel- Overrides:
newUnsafein classAbstractIoUringStreamChannel
-