Interface IoClientFactory

All Known Implementing Classes:
DefaultIoClientFactory

public interface IoClientFactory
Interface for creating the TCP/UDP factories necessary for the SimpleResolver.
Since:
3.6
  • Method Summary

    Modifier and Type
    Method
    Description
    Create or return a cached/reused instance of the TCP resolver that should be used to send DNS data over the wire to the remote target.
    Create or return a cached/reused instance of the UDP resolver that should be used to send DNS data over the wire to the remote target.
  • Method Details

    • createOrGetTcpClient

      TcpIoClient createOrGetTcpClient()
      Create or return a cached/reused instance of the TCP resolver that should be used to send DNS data over the wire to the remote target.
      It is the responsibility of this method to manage pooling or connection reuse. This method is called right before the connection is made every time the SimpleResolver is called. The implementer of this method should be aware and choose how to pool or reuse connections.
      Returns:
      an instance of the tcp resolver client
    • createOrGetUdpClient

      UdpIoClient createOrGetUdpClient()
      Create or return a cached/reused instance of the UDP resolver that should be used to send DNS data over the wire to the remote target.
      Returns:
      an instance of the udp resolver client