Interface DnsServiceDiscovererObserver.DnsResolutionObserver
-
- Enclosing interface:
- DnsServiceDiscovererObserver
public static interface DnsServiceDiscovererObserver.DnsResolutionObserver
An observer that provides visibility into DNS resolution results.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
resolutionCompleted(DnsServiceDiscovererObserver.ResolutionResult result)
Notifies that the current DNS resolution completed successfully.void
resolutionFailed(java.lang.Throwable cause)
Notifies that the current DNS resolution failed.
-
-
-
Method Detail
-
resolutionFailed
void resolutionFailed(java.lang.Throwable cause)
Notifies that the current DNS resolution failed.- Parameters:
cause
-Throwable
as a cause for the failure
-
resolutionCompleted
void resolutionCompleted(DnsServiceDiscovererObserver.ResolutionResult result)
Notifies that the current DNS resolution completed successfully.- Parameters:
result
- theDnsServiceDiscovererObserver.ResolutionResult
-
-