Package com.spotify.dns
Interface DnsSrvResolver
-
public interface DnsSrvResolverContract for doing SRV lookups.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description List<LookupResult>resolve(String fqdn)Deprecated.This method is deprecated in favor of the asynchronous version.default CompletionStage<List<LookupResult>>resolveAsync(String fqdn)Does a DNS SRV lookup for the supplied fully qualified domain name, and returns the matching results.
-
-
-
Method Detail
-
resolve
@Deprecated List<LookupResult> resolve(String fqdn)
Deprecated.This method is deprecated in favor of the asynchronous version. UseresolveAsync(String)insteadDoes a DNS SRV lookup for the supplied fully qualified domain name, and returns the matching results.- Parameters:
fqdn- a DNS name to query for- Returns:
- a possibly empty list of matching records
- Throws:
DnsException- if there was an error doing the DNS lookup
-
resolveAsync
default CompletionStage<List<LookupResult>> resolveAsync(String fqdn)
Does a DNS SRV lookup for the supplied fully qualified domain name, and returns the matching results.- Parameters:
fqdn- a DNS name to query for- Returns:
- a possibly empty list of matching records
- Throws:
DnsException- if there was an error doing the DNS lookup
-
-