Class DnsClient
- java.lang.Object
-
- io.vertx.mutiny.core.dns.DnsClient
-
public class DnsClient extends Object
Provides a way to asynchronously lookup information from DNS servers.Please consult the documentation for more information on DNS clients.
NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<DnsClient>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description DnsClient(io.vertx.core.dns.DnsClient delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)io.vertx.core.dns.DnsClientgetDelegate()inthashCode()io.smallrye.mutiny.Uni<String>lookup(String name)Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name.io.smallrye.mutiny.Uni<String>lookup4(String name)Try to lookup the A (ipv4) record for the given name.Stringlookup4AndAwait(String name)Blocking variant oflookup4(String).io.smallrye.mutiny.Uni<String>lookup6(String name)Try to lookup the AAAA (ipv6) record for the given name.Stringlookup6AndAwait(String name)Blocking variant oflookup6(String).StringlookupAndAwait(String name)Blocking variant oflookup(String).static DnsClientnewInstance(io.vertx.core.dns.DnsClient arg)io.smallrye.mutiny.Uni<List<String>>resolveA(String name)Try to resolve all A (ipv4) records for the given name.io.smallrye.mutiny.Uni<List<String>>resolveAAAA(String name)Try to resolve all AAAA (ipv6) records for the given name.List<String>resolveAAAAAndAwait(String name)Blocking variant ofresolveAAAA(String).List<String>resolveAAndAwait(String name)Blocking variant ofresolveA(String).io.smallrye.mutiny.Uni<List<String>>resolveCNAME(String name)Try to resolve the CNAME record for the given name.List<String>resolveCNAMEAndAwait(String name)Blocking variant ofresolveCNAME(String).io.smallrye.mutiny.Uni<List<MxRecord>>resolveMX(String name)Try to resolve the MX records for the given name.List<MxRecord>resolveMXAndAwait(String name)Blocking variant ofresolveMX(String).io.smallrye.mutiny.Uni<List<String>>resolveNS(String name)Try to resolve the NS records for the given name.List<String>resolveNSAndAwait(String name)Blocking variant ofresolveNS(String).io.smallrye.mutiny.Uni<String>resolvePTR(String name)Try to resolve the PTR record for the given name.StringresolvePTRAndAwait(String name)Blocking variant ofresolvePTR(String).io.smallrye.mutiny.Uni<List<SrvRecord>>resolveSRV(String name)Try to resolve the SRV records for the given name.List<SrvRecord>resolveSRVAndAwait(String name)Blocking variant ofresolveSRV(String).io.smallrye.mutiny.Uni<List<String>>resolveTXT(String name)Try to resolve the TXT records for the given name.List<String>resolveTXTAndAwait(String name)Blocking variant ofresolveTXT(String).io.smallrye.mutiny.Uni<String>reverseLookup(String ipaddress)Try to do a reverse lookup of an IP address.StringreverseLookupAndAwait(String ipaddress)Blocking variant ofreverseLookup(String).StringtoString()
-
-
-
Method Detail
-
getDelegate
public io.vertx.core.dns.DnsClient getDelegate()
-
lookup
public io.smallrye.mutiny.Uni<String> lookup(String name)
Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name to resolve- Returns:
- a reference to this, so the API can be used fluently
-
lookupAndAwait
public String lookupAndAwait(String name)
Blocking variant oflookup(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name to resolve- Returns:
- a reference to this, so the API can be used fluently
-
lookup4
public io.smallrye.mutiny.Uni<String> lookup4(String name)
Try to lookup the A (ipv4) record for the given name. The first found will be used.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name to resolve- Returns:
- a reference to this, so the API can be used fluently
-
lookup4AndAwait
public String lookup4AndAwait(String name)
Blocking variant oflookup4(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name to resolve- Returns:
- a reference to this, so the API can be used fluently
-
lookup6
public io.smallrye.mutiny.Uni<String> lookup6(String name)
Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name to resolve- Returns:
- a reference to this, so the API can be used fluently
-
lookup6AndAwait
public String lookup6AndAwait(String name)
Blocking variant oflookup6(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name to resolve- Returns:
- a reference to this, so the API can be used fluently
-
resolveA
public io.smallrye.mutiny.Uni<List<String>> resolveA(String name)
Try to resolve all A (ipv4) records for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name to resolve- Returns:
- a reference to this, so the API can be used fluently
-
resolveAAndAwait
public List<String> resolveAAndAwait(String name)
Blocking variant ofresolveA(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name to resolve- Returns:
- a reference to this, so the API can be used fluently
-
resolveAAAA
public io.smallrye.mutiny.Uni<List<String>> resolveAAAA(String name)
Try to resolve all AAAA (ipv6) records for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name to resolve- Returns:
- a reference to this, so the API can be used fluently
-
resolveAAAAAndAwait
public List<String> resolveAAAAAndAwait(String name)
Blocking variant ofresolveAAAA(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name to resolve- Returns:
- a reference to this, so the API can be used fluently
-
resolveCNAME
public io.smallrye.mutiny.Uni<List<String>> resolveCNAME(String name)
Try to resolve the CNAME record for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name to resolve the CNAME for- Returns:
- a reference to this, so the API can be used fluently.
-
resolveCNAMEAndAwait
public List<String> resolveCNAMEAndAwait(String name)
Blocking variant ofresolveCNAME(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name to resolve the CNAME for- Returns:
- a reference to this, so the API can be used fluently.
-
resolveMX
public io.smallrye.mutiny.Uni<List<MxRecord>> resolveMX(String name)
Try to resolve the MX records for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name for which the MX records should be resolved- Returns:
- a reference to this, so the API can be used fluently.
-
resolveMXAndAwait
public List<MxRecord> resolveMXAndAwait(String name)
Blocking variant ofresolveMX(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name for which the MX records should be resolved- Returns:
- a reference to this, so the API can be used fluently.
-
resolveTXT
public io.smallrye.mutiny.Uni<List<String>> resolveTXT(String name)
Try to resolve the TXT records for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name for which the TXT records should be resolved- Returns:
- a reference to this, so the API can be used fluently.
-
resolveTXTAndAwait
public List<String> resolveTXTAndAwait(String name)
Blocking variant ofresolveTXT(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name for which the TXT records should be resolved- Returns:
- a reference to this, so the API can be used fluently.
-
resolvePTR
public io.smallrye.mutiny.Uni<String> resolvePTR(String name)
Try to resolve the PTR record for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name to resolve the PTR for- Returns:
- a reference to this, so the API can be used fluently.
-
resolvePTRAndAwait
public String resolvePTRAndAwait(String name)
Blocking variant ofresolvePTR(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name to resolve the PTR for- Returns:
- a reference to this, so the API can be used fluently.
-
resolveNS
public io.smallrye.mutiny.Uni<List<String>> resolveNS(String name)
Try to resolve the NS records for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name for which the NS records should be resolved- Returns:
- a reference to this, so the API can be used fluently.
-
resolveNSAndAwait
public List<String> resolveNSAndAwait(String name)
Blocking variant ofresolveNS(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name for which the NS records should be resolved- Returns:
- a reference to this, so the API can be used fluently.
-
resolveSRV
public io.smallrye.mutiny.Uni<List<SrvRecord>> resolveSRV(String name)
Try to resolve the SRV records for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
name- the name for which the SRV records should be resolved- Returns:
- a reference to this, so the API can be used fluently.
-
resolveSRVAndAwait
public List<SrvRecord> resolveSRVAndAwait(String name)
Blocking variant ofresolveSRV(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name- the name for which the SRV records should be resolved- Returns:
- a reference to this, so the API can be used fluently.
-
reverseLookup
public io.smallrye.mutiny.Uni<String> reverseLookup(String ipaddress)
Try to do a reverse lookup of an IP address. This is basically the same as doing trying to resolve a PTR record but allows you to just pass in the IP address and not a valid ptr query string.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
ipaddress- the IP address to resolve the PTR for- Returns:
- a reference to this, so the API can be used fluently.
-
reverseLookupAndAwait
public String reverseLookupAndAwait(String ipaddress)
Blocking variant ofreverseLookup(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
ipaddress- the IP address to resolve the PTR for- Returns:
- a reference to this, so the API can be used fluently.
-
newInstance
public static DnsClient newInstance(io.vertx.core.dns.DnsClient arg)
-
-