Interface DnsServiceDiscovererObserver.DnsResolutionObserver
- Enclosing interface:
- DnsServiceDiscovererObserver
public static interface DnsServiceDiscovererObserver.DnsResolutionObserver
An observer that provides visibility into DNS resolution results.
The resolution is considered complete when one of the terminal events is invoked. It's guaranteed only one terminal event will be invoked per request.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notifies that the current DNS resolution completed successfully.void
resolutionFailed
(Throwable cause) Notifies that the current DNS resolution failed.
-
Method Details
-
resolutionFailed
Notifies that the current DNS resolution failed.This is one of the possible terminal events.
- Parameters:
cause
-Throwable
as a cause for the failure
-
resolutionCompleted
Notifies that the current DNS resolution completed successfully.This is one of the possible terminal events.
- Parameters:
result
- theDnsServiceDiscovererObserver.ResolutionResult
-