Interface HostNameResolver

All Known Implementing Classes:
DefaultHostNameResolver

public interface HostNameResolver
Interface for classes which resolve host names. This is commonly used to inject a service discovery or load balancing strategy that is not supported transparently through DNS lookup.
Author:
Ville Koskela (ville dot koskela at inscopemetrics dot io)
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(String hostName)
    Resolve a host name to another hostname or ip address.
  • Method Details

    • resolve

      String resolve(String hostName)
      Resolve a host name to another hostname or ip address.
      Parameters:
      hostName - the host name to resolve.
      Returns:
      the resolved host name or ip address.