Interface DnsReporter


  • public interface DnsReporter
    Implement to report statistics for DNS request. This interface exists to allow implementers to bridge the statistics collected through the use of this library with their own statistics solution.
    • Method Detail

      • resolveTimer

        DnsTimingContext resolveTimer()
        Report resolve timing.
        Returns:
        A new timing context.
      • reportEmpty

        void reportEmpty()
        Report that an empty response has been received from a resolve.
      • reportFailure

        void reportFailure​(Throwable error)
        Report that a resolve resulting in a failure.
        Parameters:
        error - The exception causing the failure.