Class IoUringServerDomainSocketChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.uring.AbstractIoUringChannel
io.netty.channel.uring.AbstractIoUringServerChannel
io.netty.channel.uring.IoUringServerDomainSocketChannel
- All Implemented Interfaces:
Channel, ChannelOutboundInvoker, ServerChannel, ServerDomainSocketChannel, UnixChannel, AttributeMap, Comparable<Channel>
public final class IoUringServerDomainSocketChannel
extends AbstractIoUringServerChannel
implements ServerDomainSocketChannel
-
Nested Class Summary
Nested 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
FieldsModifier and TypeFieldDescriptionprivate final IoUringServerSocketChannelConfigprivate DomainSocketAddressprivate static final InternalLoggerFields inherited from class AbstractIoUringChannel
active, socket, writeTracker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the configuration of this channel.protected voiddoBind(SocketAddress localAddress) Bind theChannelto theSocketAddressReturns the local address where this channel is bound to.(package private) ChannelnewChildChannel(int fd, ByteBuffer acceptedAddressMemory) Returns the remote address where this channel is connected to.Methods inherited from class AbstractIoUringServerChannel
cancelOutstandingReads, cancelOutstandingWrites, doClose, doWrite, isPollInFirst, isStreamSocket, metadata, newUnsafe, socketIsEmptyMethods inherited from class AbstractIoUringChannel
allowMultiShotPollIn, autoReadCleared, checkResolvable, doBeginRead, doDeregister, doDisconnect, doRegister, doShutdownOutput, doShutdownOutput0, fd, filterOutboundMessage, 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, parent, 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, parent, pipeline, read, setOption, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushMethods inherited from interface Comparable
compareToMethods inherited from interface UnixChannel
fd
-
Field Details
-
logger
-
config
-
local
-
-
Constructor Details
-
IoUringServerDomainSocketChannel
public IoUringServerDomainSocketChannel()
-
-
Method Details
-
newChildChannel
- Specified by:
newChildChannelin classAbstractIoUringServerChannel- Throws:
Exception
-
config
Description copied from interface:ChannelReturns the configuration of this channel. -
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 interfaceServerDomainSocketChannel- Overrides:
localAddressin classAbstractChannel- Returns:
- the local address of this channel.
nullif this channel is not bound.
-
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 interfaceServerDomainSocketChannel- 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.
-
doBind
Description copied from class:AbstractChannelBind theChannelto theSocketAddress- Overrides:
doBindin classAbstractIoUringChannel- Throws:
Exception
-