public static interface DnsServiceDiscovererObserver.DnsResolutionObserver
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.
| Modifier and Type | Method and Description |
|---|---|
void |
resolutionCompleted(DnsServiceDiscovererObserver.ResolutionResult result)
Notifies that the current DNS resolution completed successfully.
|
void |
resolutionFailed(Throwable cause)
Notifies that the current DNS resolution failed.
|
void resolutionFailed(Throwable cause)
This is one of the possible terminal events.
cause - Throwable as a cause for the failurevoid resolutionCompleted(DnsServiceDiscovererObserver.ResolutionResult result)
This is one of the possible terminal events.
result - the DnsServiceDiscovererObserver.ResolutionResult