Class NioDomainSocketChannel

All Implemented Interfaces:
Channel, ChannelOutboundInvoker, DuplexChannel, AttributeMap, java.lang.Comparable<Channel>

public final class NioDomainSocketChannel extends AbstractNioByteChannel implements DuplexChannel
DuplexChannel which uses NIO selector based implementation to support UNIX Domain Sockets. This is only supported when using Java 16+.
  • Field Details

    • logger

      private static final InternalLogger logger
    • DEFAULT_SELECTOR_PROVIDER

      private static final java.nio.channels.spi.SelectorProvider DEFAULT_SELECTOR_PROVIDER
    • OPEN_SOCKET_CHANNEL_WITH_FAMILY

      private static final java.lang.reflect.Method OPEN_SOCKET_CHANNEL_WITH_FAMILY
    • config

      private final ChannelConfig config
    • isInputShutdown

      private volatile boolean isInputShutdown
    • isOutputShutdown

      private volatile boolean isOutputShutdown
  • Constructor Details

    • NioDomainSocketChannel

      public NioDomainSocketChannel()
      Create a new instance
    • NioDomainSocketChannel

      public NioDomainSocketChannel(java.nio.channels.spi.SelectorProvider provider)
      Create a new instance using the given SelectorProvider.
    • NioDomainSocketChannel

      public NioDomainSocketChannel(java.nio.channels.SocketChannel socket)
      Create a new instance using the given SocketChannel.
    • NioDomainSocketChannel

      public NioDomainSocketChannel(Channel parent, java.nio.channels.SocketChannel socket)
      Create a new instance
      Parameters:
      parent - the Channel which created this instance or null if it was created by the user
      socket - the SocketChannel which will be used
  • Method Details