public static interface DnsServiceDiscovererObserver.DnsDiscoveryObserver
The discovery is considered complete when one of the terminal events is invoked. It's guaranteed only one terminal event will be invoked per request.
In case of an SRV lookup, there might be multiple DNS resolutions observed for one
discovery.
| Modifier and Type | Method and Description |
|---|---|
default void |
discoveryCancelled()
Notifies that the current DNS discovery got cancelled.
|
default void |
discoveryFailed(Throwable cause)
Notifies that the current DNS discovery failed.
|
DnsServiceDiscovererObserver.DnsResolutionObserver |
onNewResolution(String name)
Notifies that a new DNS resolution started.
|
DnsServiceDiscovererObserver.DnsResolutionObserver onNewResolution(String name)
name - the name for the DNS question to
be queriedDnsServiceDiscovererObserver.DnsResolutionObserver that provides visibility into results of the current DNS resolutiondefault void discoveryCancelled()
This is one of the possible terminal events.
default void discoveryFailed(Throwable cause)
This is one of the possible terminal events.
cause - Throwable as a cause for the failure