Interface DomainNameResolver

All Known Implementing Classes:
DefaultDomainNameResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DomainNameResolver
A resolver function used by the driver to resolve domain names.
  • Method Summary

    Modifier and Type
    Method
    Description
    Resolve the given domain name to a set of addresses.
  • Method Details

    • resolve

      InetAddress[] resolve(String name) throws UnknownHostException
      Resolve the given domain name to a set of addresses.
      Parameters:
      name - the name to resolve.
      Returns:
      the resolved addresses.
      Throws:
      UnknownHostException - must be thrown if the given name can not be resolved to at least one address.