Class IoTransport


  • public final class IoTransport
    extends Object
    IoTransport holds EventLoop, SocketChannel and DatagramChannel for DNS I/O.
    • Field Detail

      • DEFAULT

        public static final IoTransport DEFAULT
        Default IoTransport which uses NioIoHandler, NioSocketChannel and NioDatagramChannel.
    • Method Detail

      • create

        public static IoTransport create​(io.netty.channel.EventLoop eventLoop,
                                         io.netty.channel.ChannelFactory<io.netty.channel.socket.SocketChannel> socketChannel,
                                         io.netty.channel.ChannelFactory<io.netty.channel.socket.DatagramChannel> datagramChannel)
        Create a new IoTransport instance
        Parameters:
        eventLoop - EventLoop to use for I/O
        socketChannel - SocketChannel for TCP DNS lookup and OCSP query
        datagramChannel - DatagramChannel for UDP DNS lookup
        Returns:
        NullPointerException if any parameter is null
      • eventLoop

        public io.netty.channel.EventLoop eventLoop()
      • socketChannel

        public io.netty.channel.ChannelFactory<io.netty.channel.socket.SocketChannel> socketChannel()
      • datagramChannel

        public io.netty.channel.ChannelFactory<io.netty.channel.socket.DatagramChannel> datagramChannel()