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 |
| config | back to summary |
|---|---|
| private final EpollDatagramChannelConfig config | |
| connected | back to summary |
|---|---|
| private volatile boolean connected | |
| EXPECTED_TYPES | back to summary |
|---|---|
| private static final String EXPECTED_TYPES | |
| METADATA | back to summary |
|---|---|
| private static final ChannelMetadata METADATA | |
| EpollDatagramChannel | back to summary |
|---|---|
| public EpollDatagramChannel() Create a new instance which selects the | |
| EpollDatagramChannel | back to summary |
|---|---|
| public EpollDatagramChannel(InternetProtocolFamily family) Create a new instance using the given | |
| EpollDatagramChannel | back to summary |
|---|---|
| public EpollDatagramChannel(int fd) Create a new instance which selects the | |
| EpollDatagramChannel | back to summary |
|---|---|
| private EpollDatagramChannel(LinuxSocket fd, boolean active) | |
| addDatagramPacketToOut | back to summary |
|---|---|
| private static void addDatagramPacketToOut(DatagramPacket packet, RecyclableArrayList out) | |
| block | back to summary |
|---|---|
| public ChannelFuture block(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock) Implements io. Doc from io. Block the given sourceToBlock address for the given multicastAddress on the given networkInterface and notifies
the
| |
| block | back to summary |
|---|---|
| public ChannelFuture block(final InetAddress multicastAddress, final NetworkInterface networkInterface, final InetAddress sourceToBlock, final ChannelPromise promise) Implements io. Doc from io. Block the given sourceToBlock address for the given multicastAddress on the given networkInterface and notifies
the
| |
| block | back to summary |
|---|---|
| public ChannelFuture block(InetAddress multicastAddress, InetAddress sourceToBlock) Implements io. Doc from io. Block the given sourceToBlock address for the given multicastAddress and notifies the
| |
| block | back to summary |
|---|---|
| public ChannelFuture block(InetAddress multicastAddress, InetAddress sourceToBlock, ChannelPromise promise) Implements io. Doc from io. Block the given sourceToBlock address for the given multicastAddress and notifies the
| |
| checkUnresolved | back to summary |
|---|---|
| private static void checkUnresolved(AddressedEnvelope<?, ?> envelope) | |
| cleanDatagramPacketArray | back to summary |
|---|---|
| private NativeDatagramPacketArray cleanDatagramPacketArray() | |
| config | back to summary |
|---|---|
| public EpollDatagramChannelConfig config() Implements abstract io. Implements io. Doc from io. Returns the configuration of this channel.
| |
| connectedRead | back to summary |
|---|---|
| private boolean connectedRead(EpollRecvByteAllocatorHandle allocHandle, ByteBuf byteBuf, int maxDatagramPacketSize) throws Exception
Deprecated as a consequence of | |
| doBind | back to summary |
|---|---|
| protected void doBind(SocketAddress localAddress) throws Exception Overrides io. Doc from io. Bind the
| |
| doClose | back to summary |
|---|---|
| protected void doClose() throws Exception Overrides io. Doc from io. Close the
| |
| doConnect | back to summary |
|---|---|
| protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception Overrides io. Doc from io. Connect to the remote peer
| |
| doDisconnect | back to summary |
|---|---|
| protected void doDisconnect() throws Exception Overrides io. Doc from io. Disconnect this
| |
| doWrite | back to summary |
|---|---|
| protected void doWrite(ChannelOutboundBuffer in) throws Exception Implements abstract io. Doc from io. Flush the content of the given buffer to the remote peer.
| |
| doWriteMessage | back to summary |
|---|---|
| private boolean doWriteMessage(Object msg) throws Exception | |
| filterOutboundMessage | back to summary |
|---|---|
| protected Object filterOutboundMessage(Object msg) Overrides io. Doc from io. Invoked when a new message is added to a
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Overrides io. Implements io. Doc from io. Return
| |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Implements io. Doc from io. Return
| |
| isSegmentedDatagramPacketSupported | back to summary |
|---|---|
| public static boolean isSegmentedDatagramPacketSupported() Returns
| |
| joinGroup | back to summary |
|---|---|
| public ChannelFuture joinGroup(InetAddress multicastAddress) Implements io. Doc from io. Joins a multicast group and notifies the
| |
| joinGroup | back to summary |
|---|---|
| public ChannelFuture joinGroup(InetAddress multicastAddress, ChannelPromise promise) Implements io. Doc from io. Joins a multicast group and notifies the
| |
| joinGroup | back to summary |
|---|---|
| public ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface) Implements io. Doc from io. Joins the specified multicast group at the specified interface and notifies the
| |
| joinGroup | back to summary |
|---|---|
| public ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelPromise promise) Implements io. Doc from io. Joins the specified multicast group at the specified interface and notifies the
| |
| joinGroup | back to summary |
|---|---|
| public ChannelFuture joinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source) Implements io. Doc from io. Joins the specified multicast group at the specified interface and notifies the
| |
| joinGroup | back to summary |
|---|---|
| public ChannelFuture joinGroup(final InetAddress multicastAddress, final NetworkInterface networkInterface, final InetAddress source, final ChannelPromise promise) Implements io. Doc from io. Joins the specified multicast group at the specified interface and notifies the
| |
| joinGroup0 | back to summary |
|---|---|
| private void joinGroup0(final InetAddress multicastAddress, final NetworkInterface networkInterface, final InetAddress source, final ChannelPromise promise) | |
| leaveGroup | back to summary |
|---|---|
| public ChannelFuture leaveGroup(InetAddress multicastAddress) Implements io. Doc from io. Leaves a multicast group and notifies the
| |
| leaveGroup | back to summary |
|---|---|
| public ChannelFuture leaveGroup(InetAddress multicastAddress, ChannelPromise promise) Implements io. Doc from io. Leaves a multicast group and notifies the
| |
| leaveGroup | back to summary |
|---|---|
| public ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface) Implements io. Doc from io. Leaves a multicast group on a specified local interface and notifies the
| |
| leaveGroup | back to summary |
|---|---|
| public ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelPromise promise) Implements io. Doc from io. Leaves a multicast group on a specified local interface and notifies the
| |
| leaveGroup | back to summary |
|---|---|
| public ChannelFuture leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source) Implements io. Doc from io. Leave the specified multicast group at the specified interface using the specified source and notifies
the
| |
| leaveGroup | back to summary |
|---|---|
| public ChannelFuture leaveGroup(final InetAddress multicastAddress, final NetworkInterface networkInterface, final InetAddress source, final ChannelPromise promise) Implements io. Doc from io. Leave the specified multicast group at the specified interface using the specified source and notifies
the
| |
| leaveGroup0 | back to summary |
|---|---|
| private void leaveGroup0(final InetAddress multicastAddress, final NetworkInterface networkInterface, final InetAddress source, final ChannelPromise promise) | |
| localAddress | back to summary |
|---|---|
| public InetSocketAddress localAddress() Overrides io. Implements io. Doc from io. Returns the local address where this channel is bound to. The returned
| |
| metadata | back to summary |
|---|---|
| public ChannelMetadata metadata() Overrides io. Implements io. Doc from io. Return the
| |
| newUnsafe | back to summary |
|---|---|
| protected AbstractEpollChannel. Implements abstract io. Doc from io. Create a new
| |
| processPacket | back to summary |
|---|---|
| private static void processPacket(ChannelPipeline pipeline, EpollRecvByteAllocatorHandle handle, int bytesRead, DatagramPacket packet)
Deprecated as a consequence of | |
| processPacketList | back to summary |
|---|---|
| private static void processPacketList(ChannelPipeline pipeline, EpollRecvByteAllocatorHandle handle, int bytesRead, RecyclableArrayList packetList)
Deprecated as a consequence of | |
| recvmsg | back to summary |
|---|---|
| private boolean recvmsg(EpollRecvByteAllocatorHandle allocHandle, NativeDatagramPacketArray array, ByteBuf byteBuf) throws IOException
Deprecated as a consequence of | |
| releaseAndRecycle | back to summary |
|---|---|
| private static void releaseAndRecycle(ByteBuf byteBuf, RecyclableArrayList packetList) | |
| remoteAddress | back to summary |
|---|---|
| public InetSocketAddress remoteAddress() Overrides io. Implements io. Doc from io. Returns the remote address where this channel is connected to. The
returned
| |
| scatteringRead | back to summary |
|---|---|
| private boolean scatteringRead(EpollRecvByteAllocatorHandle allocHandle, NativeDatagramPacketArray array, ByteBuf byteBuf, int datagramSize, int numDatagram) throws IOException
Deprecated as a consequence of | |
| translateForConnected | back to summary |
|---|---|
| private IOException translateForConnected(Errors. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | epollInReady()
Implements abstract io. |
| EpollDatagramChannelUnsafe | back to summary |
|---|---|
| pack-priv EpollDatagramChannelUnsafe() | |
| epollInReady | back to summary |
|---|---|
| pack-priv void epollInReady() Implements abstract io. Doc from io. Called once EPOLLIN event is ready to be processed
| |