Interface DnsServiceDiscovererObserver
public interface DnsServiceDiscovererObserver
An observer that provides visibility into DNS
ServiceDiscoverer built by DnsServiceDiscovererBuilder.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn observer that provides visibility into individual DNS discoveries.static interfaceAn observer that provides visibility into DNS resolution results.static interfaceResults of the current DNS resolution. -
Method Summary
Modifier and TypeMethodDescriptiononNewDiscovery(String name) Deprecated.onNewDiscovery(String serviceDiscovererId, String name) Notifies that a newdiscoverystarted.
-
Method Details
-
onNewDiscovery
Deprecated.useonNewDiscovery(String, String)instead. To avoid breaking changes, all current implementations must implement both methods. In the next version the default implementation will swap. Then users will be able to keep implementation only for the new method. In the release after, the deprecated method will be removed.Notifies that a newdiscoverystarted.- Parameters:
name- the name of DNS record to be discovered- Returns:
DnsServiceDiscovererObserver.DnsDiscoveryObserverthat provides visibility into individual DNS resolutions behind the associated discovery
-
onNewDiscovery
default DnsServiceDiscovererObserver.DnsDiscoveryObserver onNewDiscovery(String serviceDiscovererId, String name) Notifies that a newdiscoverystarted.- Parameters:
serviceDiscovererId- the ID of theServiceDiscoverer.name- the name of DNS record to be discovered- Returns:
DnsServiceDiscovererObserver.DnsDiscoveryObserverthat provides visibility into individual DNS resolutions behind the associated discovery
-
onNewDiscovery(String, String)instead.