DatagramChannel implementation that uses KQueue.
DatagramChannel and UnixChannel,
KQueueDatagramChannel allows the following options in the option map:
ChannelOption |
INET |
INET6 |
UNIX |
|---|---|---|---|
IntegerUnixChannelOption | X | X | X |
RawUnixChannelOption | X | X | X |
UnixChannelOption#SO_REUSEPORT | X | X | - |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private volatile boolean | |
| private static final String | |
| private static final String | |
| private volatile boolean | |
| private static final InternalLogger | |
| private volatile boolean | |
| private static final Set | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Future | block(InetAddress
the multicast group address. multicastAddress, NetworkInterface the interface to use. networkInterface, InetAddress the source address. sourceToBlock)Implements io. Future once the operation completes.
|
| public Future | block(InetAddress
the multicast group address. multicastAddress, InetAddress the source address. sourceToBlock)Implements io. Future once
the operation completes.
|
| protected void | doBind(SocketAddress
the localAddress)SocketAddress to bound to.Overrides io. Channel to the SocketAddress
|
| protected void | |
| protected boolean | doConnect(SocketAddress
the address of the remote peer. remoteAddress, SocketAddress the local address of this channel. localAddress, Buffer the initial data that is written during connect
(if initialData)ChannelOption#TCP_FASTOPEN_CONNECT is supported and configured).
If data is written care must be taken to update the
reader offset.Overrides io. |
| protected void | doDisconnect()
Overrides io. Channel from its remote peer
|
| protected void | doShutdown(ChannelShutdownDirection
the direction to shut down. direction)Implements abstract io. Channel.
|
| protected void | doWriteNow(AbstractChannel<UnixChannel, SocketAddress, SocketAddress>.
the writeSinkWriteSink that must be completed with the write
progress.
WriteSink#complete(long, long, int, boolean) or
WriteSink#complete(long, Throwable, boolean) must be called
exactly once before this method returns non-exceptional.Implements abstract io. false or there are
no more messages to write.
|
| protected Object | filterOutboundMessage(Object
the message to filter / convert. msg)Overrides io. AbstractChannel, so that
the Channel implementation converts the message to another.
|
| private Object | filterOutboundMessage0(Object msg, Class<? extends SocketAddress> recipientClass, String expectedTypes)
|
| private boolean | |
| protected <T> T | getExtendedOption(ChannelOption<T>
the option)ChannelOption.Overrides io. ChannelOptions.
|
| private int | |
| private int | |
| private int | |
| public boolean | isActive()
Overrides io. Implements io. true if the Channel is active and so connected.
|
| private boolean | |
| public boolean | isConnected()
Implements io. true if the DatagramChannel is connected to the remote peer.
|
| protected boolean | isExtendedOptionSupported(ChannelOption<?>
the option)ChannelOption.Overrides io. ChannelOptions.
|
| private boolean | |
| private boolean | |
| public boolean | isShutdown(ChannelShutdownDirection direction)
Implements io. true if the ChannelShutdownDirection of the Channel was shutdown before.
|
| private boolean | |
| public Future | joinGroup(InetAddress
the multicast group address. multicastAddress)Implements io. Future once the operation completes.
|
| public Future | joinGroup(InetAddress
the multicast group address. multicastAddress, NetworkInterface the interface to use. networkInterface, InetAddress the source address (might be source)null).Implements io. Future
once the operation completes.
|
| public Future | leaveGroup(InetAddress
the multicast group address. multicastAddress)Implements io. Future once the operation completes.
|
| public Future | leaveGroup(InetAddress
the multicast group address. multicastAddress, NetworkInterface the interface to use. networkInterface, InetAddress the source address (might be source)null).Implements io. Future once the operation completes.
|
| private <V> Future | |
| pack-priv int | readReady(AbstractChannel<UnixChannel, SocketAddress, SocketAddress>.
Implements abstract io. |
| private void | |
| private void | |
| protected <T> void | setExtendedOption(ChannelOption<T>
the option, T value)ChannelOption.Overrides io. ChannelOptions.
|
| private void | |
| private void | |
| private void | |
| public void | |
| private void | |
| private static Set | |
| private static Set |
| activeOnOpen | back to summary |
|---|---|
| private boolean activeOnOpen | |
| connected | back to summary |
|---|---|
| private volatile boolean connected | |
| EXPECTED_TYPES | back to summary |
|---|---|
| private static final String EXPECTED_TYPES | |
| EXPECTED_TYPES_DOMAIN | back to summary |
|---|---|
| private static final String EXPECTED_TYPES_DOMAIN | |
| inputShutdown | back to summary |
|---|---|
| private volatile boolean inputShutdown | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| outputShutdown | back to summary |
|---|---|
| private volatile boolean outputShutdown | |
| SUPPORTED_OPTIONS | back to summary |
|---|---|
| private static final Set<ChannelOption<?>> SUPPORTED_OPTIONS | |
| SUPPORTED_OPTIONS_DOMAIN_SOCKET | back to summary |
|---|---|
| private static final Set<ChannelOption<?>> SUPPORTED_OPTIONS_DOMAIN_SOCKET | |
| KQueueDatagramChannel | back to summary |
|---|---|
| public KQueueDatagramChannel(EventLoop eventLoop) | |
| KQueueDatagramChannel | back to summary |
|---|---|
| public KQueueDatagramChannel(EventLoop eventLoop, ProtocolFamily protocolFamily) | |
| KQueueDatagramChannel | back to summary |
|---|---|
| public KQueueDatagramChannel(EventLoop eventLoop, int fd, ProtocolFamily protocolFamily) | |
| KQueueDatagramChannel | back to summary |
|---|---|
| pack-priv KQueueDatagramChannel(EventLoop eventLoop, BsdSocket socket, boolean active) | |
| block | back to summary |
|---|---|
| public Future Implements io. Doc from io. Block the given sourceToBlock address for the given multicastAddress on the given networkInterface and notifies
the
If the underlying implementation does not support this operation it will return a
| |
| block | back to summary |
|---|---|
| public Future Implements io. Doc from io. Block the given sourceToBlock address for the given multicastAddress and notifies the
If the underlying implementation does not support this operation it will return a
| |
| 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, Buffer initialData) 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 | |
| doShutdown | back to summary |
|---|---|
| protected void doShutdown(ChannelShutdownDirection direction) Implements abstract io. Doc from io. Shutdown one direction of the
| |
| doWriteNow | back to summary |
|---|---|
| protected void doWriteNow(AbstractChannel<UnixChannel, SocketAddress, SocketAddress>. Implements abstract io. Doc from io. Called in a loop when writes should be performed until this method returns
| |
| filterOutboundMessage | back to summary |
|---|---|
| protected Object filterOutboundMessage(Object msg) Overrides io. Doc from io. Invoked when a new message is added to to the outbound queue of this | |
| filterOutboundMessage0 | back to summary |
|---|---|
| private Object filterOutboundMessage0(Object msg, Class<? extends SocketAddress> recipientClass, String expectedTypes) | |
| getActiveOnOpen | back to summary |
|---|---|
| private boolean getActiveOnOpen() | |
| getExtendedOption | back to summary |
|---|---|
| protected <T> T getExtendedOption(ChannelOption<T> option) Overrides io. Doc from io. Override to add support for more
| |
| getReceiveBufferSize | back to summary |
|---|---|
| private int getReceiveBufferSize() | |
| getSendBufferSize | back to summary |
|---|---|
| private int getSendBufferSize() | |
| getTrafficClass | back to summary |
|---|---|
| private int getTrafficClass() | |
| isActive | back to summary |
|---|---|
| public boolean isActive() Overrides io. Implements io. Doc from io. Return
| |
| isBroadcast | back to summary |
|---|---|
| private boolean isBroadcast() | |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Implements io. Doc from io. Return
| |
| isExtendedOptionSupported | back to summary |
|---|---|
| protected boolean isExtendedOptionSupported(ChannelOption<?> option) Overrides io. Doc from io. Override to add support for more
| |
| isReuseAddress | back to summary |
|---|---|
| private boolean isReuseAddress() | |
| isReusePort | back to summary |
|---|---|
| private boolean isReusePort() Returns | |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown(ChannelShutdownDirection direction) Implements io. Doc from io. Returns
| |
| isSupported | back to summary |
|---|---|
| private boolean isSupported(SocketProtocolFamily protocolFamily, ChannelOption<?> option) | |
| joinGroup | back to summary |
|---|---|
| public Future Implements io. Doc from io. Joins a multicast group and notifies the
If the underlying implementation does not support this operation it will return a
| |
| joinGroup | back to summary |
|---|---|
| public Future Implements io. Doc from io. Joins the specified multicast group at the specified interface and notifies the
If the underlying implementation does not support this operation it will return a
| |
| leaveGroup | back to summary |
|---|---|
| public Future Implements io. Doc from io. Leaves a multicast group and notifies the
If the underlying implementation does not support this operation it will return a
| |
| leaveGroup | back to summary |
|---|---|
| public Future Implements io. Doc from io. Leave the specified multicast group at the specified interface using the specified source and notifies
the
If the underlying implementation does not support this operation it will return a
| |
| newMulticastNotSupportedFuture | back to summary |
|---|---|
| private <V> Future | |
| readReady | back to summary |
|---|---|
| pack-priv int readReady(AbstractChannel<UnixChannel, SocketAddress, SocketAddress>. Implements abstract io.
| |
| setActiveOnOpen | back to summary |
|---|---|
| private void setActiveOnOpen(boolean activeOnOpen) | |
| setBroadcast | back to summary |
|---|---|
| private void setBroadcast(boolean broadcast) | |
| setExtendedOption | back to summary |
|---|---|
| protected <T> void setExtendedOption(ChannelOption<T> option, T value) Overrides io. Doc from io. Override to add support for more
| |
| setReceiveBufferSize | back to summary |
|---|---|
| private void setReceiveBufferSize(int receiveBufferSize) | |
| setReuseAddress | back to summary |
|---|---|
| private void setReuseAddress(boolean reuseAddress) | |
| setReusePort | back to summary |
|---|---|
| private void setReusePort(boolean reusePort) Set the SO_REUSEPORT option on the underlying Channel. This will allow to bind multiple
| |
| setSendBufferSize | back to summary |
|---|---|
| public void setSendBufferSize(int sendBufferSize) | |
| setTrafficClass | back to summary |
|---|---|
| private void setTrafficClass(int trafficClass) | |
| supportedOptions | back to summary |
|---|---|
| private static Set | |
| supportedOptionsDomainSocket | back to summary |
|---|---|
| private static Set | |