Package com.spotify.dns.statistics
Interface DnsReporter
-
public interface DnsReporterImplement 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreportEmpty()Report that an empty response has been received from a resolve.voidreportFailure(Throwable error)Report that a resolve resulting in a failure.DnsTimingContextresolveTimer()Report resolve timing.
-
-
-
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.
-
-