Class IOUringDatagramChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.incubator.channel.uring.AbstractIOUringChannel
io.netty.incubator.channel.uring.IOUringDatagramChannel
- All Implemented Interfaces:
io.netty.channel.Channel, io.netty.channel.ChannelOutboundInvoker, io.netty.channel.socket.DatagramChannel, io.netty.channel.unix.UnixChannel, io.netty.util.AttributeMap, Comparable<io.netty.channel.Channel>
public final class IOUringDatagramChannel
extends AbstractIOUringChannel
implements io.netty.channel.socket.DatagramChannel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final classNested classes/interfaces inherited from class AbstractIOUringChannel
AbstractIOUringChannel.AbstractUringUnsafeNested 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 TypeFieldDescriptionprivate final IOUringDatagramChannelConfigprivate booleanprivate static final Stringprivate static final io.netty.channel.ChannelMetadataFields inherited from class AbstractIOUringChannel
active, socket -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a new instance which selects theInternetProtocolFamilyto use depending on the Operation Systems default which will be chosen.IOUringDatagramChannel(int fd) Create a new instance which selects theInternetProtocolFamilyto use depending on the Operation Systems default which will be chosen.IOUringDatagramChannel(io.netty.channel.socket.InternetProtocolFamily family) Create a new instance using the givenInternetProtocolFamily.privateIOUringDatagramChannel(LinuxSocket fd, boolean active) -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelFutureblock(InetAddress multicastAddress, InetAddress sourceToBlock) io.netty.channel.ChannelFutureblock(InetAddress multicastAddress, InetAddress sourceToBlock, io.netty.channel.ChannelPromise promise) io.netty.channel.ChannelFutureblock(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock) io.netty.channel.ChannelFutureblock(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock, io.netty.channel.ChannelPromise promise) private static voidcheckUnresolved(io.netty.channel.AddressedEnvelope<?, ?> envelope) config()protected voiddoBind(SocketAddress localAddress) protected voiddoClose()protected voidprotected ObjectbooleanisActive()booleanstatic booleanReturnstrueif the usage ofSegmentedDatagramPacketis supported.io.netty.channel.ChannelFuturejoinGroup(InetAddress multicastAddress) io.netty.channel.ChannelFuturejoinGroup(InetAddress multicastAddress, io.netty.channel.ChannelPromise promise) io.netty.channel.ChannelFuturejoinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source) io.netty.channel.ChannelFuturejoinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source, io.netty.channel.ChannelPromise promise) io.netty.channel.ChannelFuturejoinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface) io.netty.channel.ChannelFuturejoinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, io.netty.channel.ChannelPromise promise) io.netty.channel.ChannelFutureleaveGroup(InetAddress multicastAddress) io.netty.channel.ChannelFutureleaveGroup(InetAddress multicastAddress, io.netty.channel.ChannelPromise promise) io.netty.channel.ChannelFutureleaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source) io.netty.channel.ChannelFutureleaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source, io.netty.channel.ChannelPromise promise) io.netty.channel.ChannelFutureleaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface) io.netty.channel.ChannelFutureleaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, io.netty.channel.ChannelPromise promise) io.netty.channel.ChannelMetadatametadata()private static IOExceptiontranslateForConnected(io.netty.channel.unix.Errors.NativeIoException e) Methods inherited from class AbstractIOUringChannel
checkResolvable, clearPollFlag, doBeginRead, doDeregister, doRegister, doWrite, fd, ioScheduled, ioUringUnsafe, isCompatible, isOpen, localAddress0, newDirectBuffer, newDirectBuffer, remoteAddress0, resetCachedAddresses, schedulePollRdHup, submissionQueueMethods 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, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, unsafe, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlushMethods inherited from class io.netty.util.DefaultAttributeMap
attr, hasAttrMethods inherited from interface io.netty.util.AttributeMap
attr, hasAttrMethods inherited from interface io.netty.channel.Channel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isOpen, isRegistered, isWritable, parent, pipeline, read, 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 Comparable
compareTo
-
Field Details
-
METADATA
private static final io.netty.channel.ChannelMetadata METADATA -
EXPECTED_TYPES
-
config
-
connected
private volatile boolean connected
-
-
Constructor Details
-
IOUringDatagramChannel
public IOUringDatagramChannel()Create a new instance which selects theInternetProtocolFamilyto use depending on the Operation Systems default which will be chosen. -
IOUringDatagramChannel
public IOUringDatagramChannel(io.netty.channel.socket.InternetProtocolFamily family) Create a new instance using the givenInternetProtocolFamily. Ifnullis used it will depend on the Operation Systems default which will be chosen. -
IOUringDatagramChannel
public IOUringDatagramChannel(int fd) Create a new instance which selects theInternetProtocolFamilyto use depending on the Operation Systems default which will be chosen. -
IOUringDatagramChannel
-
-
Method Details
-
remoteAddress
- Specified by:
remoteAddressin interfaceio.netty.channel.Channel- Specified by:
remoteAddressin interfaceio.netty.channel.socket.DatagramChannel- Overrides:
remoteAddressin classio.netty.channel.AbstractChannel
-
localAddress
- Specified by:
localAddressin interfaceio.netty.channel.Channel- Specified by:
localAddressin interfaceio.netty.channel.socket.DatagramChannel- Overrides:
localAddressin classio.netty.channel.AbstractChannel
-
metadata
public io.netty.channel.ChannelMetadata metadata()- Specified by:
metadatain interfaceio.netty.channel.Channel- Overrides:
metadatain classAbstractIOUringChannel
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceio.netty.channel.Channel- Overrides:
isActivein classAbstractIOUringChannel
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceio.netty.channel.socket.DatagramChannel
-
joinGroup
- Specified by:
joinGroupin interfaceio.netty.channel.socket.DatagramChannel
-
joinGroup
public io.netty.channel.ChannelFuture joinGroup(InetAddress multicastAddress, io.netty.channel.ChannelPromise promise) - Specified by:
joinGroupin interfaceio.netty.channel.socket.DatagramChannel
-
joinGroup
public io.netty.channel.ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface) - Specified by:
joinGroupin interfaceio.netty.channel.socket.DatagramChannel
-
joinGroup
public io.netty.channel.ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, io.netty.channel.ChannelPromise promise) - Specified by:
joinGroupin interfaceio.netty.channel.socket.DatagramChannel
-
joinGroup
public io.netty.channel.ChannelFuture joinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source) - Specified by:
joinGroupin interfaceio.netty.channel.socket.DatagramChannel
-
joinGroup
public io.netty.channel.ChannelFuture joinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source, io.netty.channel.ChannelPromise promise) - Specified by:
joinGroupin interfaceio.netty.channel.socket.DatagramChannel
-
leaveGroup
- Specified by:
leaveGroupin interfaceio.netty.channel.socket.DatagramChannel
-
leaveGroup
public io.netty.channel.ChannelFuture leaveGroup(InetAddress multicastAddress, io.netty.channel.ChannelPromise promise) - Specified by:
leaveGroupin interfaceio.netty.channel.socket.DatagramChannel
-
leaveGroup
public io.netty.channel.ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface) - Specified by:
leaveGroupin interfaceio.netty.channel.socket.DatagramChannel
-
leaveGroup
public io.netty.channel.ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, io.netty.channel.ChannelPromise promise) - Specified by:
leaveGroupin interfaceio.netty.channel.socket.DatagramChannel
-
leaveGroup
public io.netty.channel.ChannelFuture leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source) - Specified by:
leaveGroupin interfaceio.netty.channel.socket.DatagramChannel
-
leaveGroup
public io.netty.channel.ChannelFuture leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source, io.netty.channel.ChannelPromise promise) - Specified by:
leaveGroupin interfaceio.netty.channel.socket.DatagramChannel
-
block
public io.netty.channel.ChannelFuture block(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock) - Specified by:
blockin interfaceio.netty.channel.socket.DatagramChannel
-
block
public io.netty.channel.ChannelFuture block(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock, io.netty.channel.ChannelPromise promise) - Specified by:
blockin interfaceio.netty.channel.socket.DatagramChannel
-
block
public io.netty.channel.ChannelFuture block(InetAddress multicastAddress, InetAddress sourceToBlock) - Specified by:
blockin interfaceio.netty.channel.socket.DatagramChannel
-
block
public io.netty.channel.ChannelFuture block(InetAddress multicastAddress, InetAddress sourceToBlock, io.netty.channel.ChannelPromise promise) - Specified by:
blockin interfaceio.netty.channel.socket.DatagramChannel
-
newUnsafe
- Specified by:
newUnsafein classAbstractIOUringChannel
-
doBind
- Overrides:
doBindin classAbstractIOUringChannel- Throws:
Exception
-
checkUnresolved
private static void checkUnresolved(io.netty.channel.AddressedEnvelope<?, ?> envelope) -
filterOutboundMessage
- Overrides:
filterOutboundMessagein classAbstractIOUringChannel
-
config
- Specified by:
configin interfaceio.netty.channel.Channel- Specified by:
configin interfaceio.netty.channel.socket.DatagramChannel
-
doDisconnect
- Overrides:
doDisconnectin classAbstractIOUringChannel- Throws:
Exception
-
doClose
- Overrides:
doClosein classAbstractIOUringChannel- Throws:
Exception
-
translateForConnected
-
isSegmentedDatagramPacketSupported
public static boolean isSegmentedDatagramPacketSupported()Returnstrueif the usage ofSegmentedDatagramPacketis supported.- Returns:
trueif supported,falseotherwise.
-