DatagramChannel implementation that uses linux EPOLL Edge-Triggered Mode for
maximal performance.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final EpollDatagramChannelConfig | |
| private volatile boolean | |
| private static final String | |
| private static final ChannelMetadata |
| Access | Constructor and Description |
|---|---|
| public | EpollDatagramChannel()
Create a new instance which selects the |
| public | EpollDatagramChannel(InternetProtocolFamily family)
Create a new instance using the given |
| public | EpollDatagramChannel(int fd)
Create a new instance which selects the |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public ChannelFuture | block(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock)
Implements io. ChannelFuture once the operation completes.
|
| public ChannelFuture | block(final InetAddress multicastAddress, final NetworkInterface networkInterface, final InetAddress sourceToBlock, final ChannelPromise promise)
Implements io. ChannelFuture once the operation completes.
|
| public ChannelFuture | block(InetAddress multicastAddress, InetAddress sourceToBlock)
Implements io. ChannelFuture once
the operation completes.
|
| public ChannelFuture | block(InetAddress multicastAddress, InetAddress sourceToBlock, ChannelPromise promise)
Implements io. ChannelFuture once
the operation completes.
|
| private static void | |
| private NativeDatagramPacketArray | |
| public EpollDatagramChannelConfig | config()
Implements abstract io. Implements io. |
| private boolean | connectedRead(EpollRecvByteAllocatorHandle allocHandle, ByteBuf byteBuf, int maxDatagramPacketSize)
Deprecated
as a consequence of
EpollRecvByteAllocatorHandle being deprecated.
|
| protected void | doBind(SocketAddress localAddress)
Overrides io. Channel to the SocketAddress
|
| protected void | |
| protected boolean | doConnect(SocketAddress remoteAddress, SocketAddress localAddress)
Overrides io. |
| protected void | doDisconnect()
Overrides io. Channel from its remote peer
|
| protected void | doWrite(ChannelOutboundBuffer in)
Implements abstract io. |
| private boolean | |
| protected Object | filterOutboundMessage(Object msg)
Overrides io. ChannelOutboundBuffer of this AbstractChannel, so that
the Channel implementation converts the message to another.
|
| public boolean | isActive()
Overrides io. Implements io. true if the Channel is active and so connected.
|
| public boolean | isConnected()
Implements io. true if the DatagramChannel is connected to the remote peer.
|
| public static boolean | Returns: true if supported, false otherwise.Returns |
| public ChannelFuture | joinGroup(InetAddress multicastAddress)
Implements io. ChannelFuture once the operation completes.
|
| public ChannelFuture | joinGroup(InetAddress multicastAddress, ChannelPromise promise)
Implements io. ChannelFuture once the operation completes.
|
| public ChannelFuture | joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface)
Implements io. ChannelFuture
once the operation completes.
|
| public ChannelFuture | joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelPromise promise)
Implements io. ChannelFuture
once the operation completes.
|
| public ChannelFuture | joinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source)
Implements io. ChannelFuture
once the operation completes.
|
| public ChannelFuture | joinGroup(final InetAddress multicastAddress, final NetworkInterface networkInterface, final InetAddress source, final ChannelPromise promise)
Implements io. ChannelFuture
once the operation completes.
|
| private void | joinGroup0(final InetAddress multicastAddress, final NetworkInterface networkInterface, final InetAddress source, final ChannelPromise promise)
|
| public ChannelFuture | leaveGroup(InetAddress multicastAddress)
Implements io. ChannelFuture once the operation completes.
|
| public ChannelFuture | leaveGroup(InetAddress multicastAddress, ChannelPromise promise)
Implements io. ChannelFuture once the operation completes.
|
| public ChannelFuture | leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface)
Implements io. ChannelFuture once the
operation completes.
|
| public ChannelFuture | leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelPromise promise)
Implements io. ChannelFuture once the
operation completes.
|
| public ChannelFuture | leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source)
Implements io. ChannelFuture once the operation completes.
|
| public ChannelFuture | leaveGroup(final InetAddress multicastAddress, final NetworkInterface networkInterface, final InetAddress source, final ChannelPromise promise)
Implements io. ChannelFuture once the operation completes.
|
| private void | leaveGroup0(final InetAddress multicastAddress, final NetworkInterface networkInterface, final InetAddress source, final ChannelPromise promise)
|
| public InetSocketAddress | localAddress()
Overrides io. Implements io. |
| public ChannelMetadata | metadata()
Overrides io. Implements io. ChannelMetadata of the Channel which describe the nature of the Channel.
|
| protected AbstractEpollChannel. | newUnsafe()
Implements abstract io. AbstractUnsafe instance which will be used for the life-time of the Channel
|
| private static void | processPacket(ChannelPipeline pipeline, EpollRecvByteAllocatorHandle handle, int bytesRead, DatagramPacket packet)
Deprecated
as a consequence of
EpollRecvByteAllocatorHandle being deprecated.
|
| private static void | processPacketList(ChannelPipeline pipeline, EpollRecvByteAllocatorHandle handle, int bytesRead, RecyclableArrayList packetList)
Deprecated
as a consequence of
EpollRecvByteAllocatorHandle being deprecated.
|
| private boolean | recvmsg(EpollRecvByteAllocatorHandle allocHandle, NativeDatagramPacketArray array, ByteBuf byteBuf)
Deprecated
as a consequence of
EpollRecvByteAllocatorHandle being deprecated.
|
| private static void | |
| public InetSocketAddress | remoteAddress()
Overrides io. Implements io. |
| private boolean | scatteringRead(EpollRecvByteAllocatorHandle allocHandle, NativeDatagramPacketArray array, ByteBuf byteBuf, int datagramSize, int numDatagram)
Deprecated
as a consequence of
EpollRecvByteAllocatorHandle being deprecated.
|
| private IOException |