Interface DnsServiceDiscovererObserver
public interface DnsServiceDiscovererObserver
An observer that provides visibility into DNS
ServiceDiscoverer
built by DnsServiceDiscovererBuilder
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
An observer that provides visibility into individual DNS discoveries.static interface
An observer that provides visibility into DNS resolution results.static interface
Results of the current DNS resolution. -
Method Summary
Modifier and TypeMethodDescriptiononNewDiscovery
(String name) Deprecated.onNewDiscovery
(String serviceDiscovererId, String name) Notifies that a newdiscovery
started.
-
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 newdiscovery
started.- Parameters:
name
- the name of DNS record to be discovered- Returns:
DnsServiceDiscovererObserver.DnsDiscoveryObserver
that provides visibility into individual DNS resolutions behind the associated discovery
-
onNewDiscovery
default DnsServiceDiscovererObserver.DnsDiscoveryObserver onNewDiscovery(String serviceDiscovererId, String name) Notifies that a newdiscovery
started.- Parameters:
serviceDiscovererId
- the ID of theServiceDiscoverer
.name
- the name of DNS record to be discovered- Returns:
DnsServiceDiscovererObserver.DnsDiscoveryObserver
that provides visibility into individual DNS resolutions behind the associated discovery
-
onNewDiscovery(String, String)
instead.