Class DnsClient
- All Implemented Interfaces:
MutinyDelegate
Please consult the documentation for more information on DNS clients.
The client is thread safe and can be used from any thread.
NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>
close()
Close the client.Blocking variant ofclose()
.void
Variant ofclose()
that ignores the result of the operation.boolean
io.vertx.core.dns.DnsClient
int
hashCode()
io.smallrye.mutiny.Uni<String>
Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name.io.smallrye.mutiny.Uni<String>
Try to lookup the A (ipv4) record for the given name.lookup4AndAwait
(String name) Blocking variant oflookup4(String)
.lookup4AndForget
(String name) Variant oflookup4(String)
that ignores the result of the operation.io.smallrye.mutiny.Uni<String>
Try to lookup the AAAA (ipv6) record for the given name.lookup6AndAwait
(String name) Blocking variant oflookup6(String)
.lookup6AndForget
(String name) Variant oflookup6(String)
that ignores the result of the operation.lookupAndAwait
(String name) Blocking variant oflookup(String)
.lookupAndForget
(String name) Variant oflookup(String)
that ignores the result of the operation.static DnsClient
newInstance
(io.vertx.core.dns.DnsClient arg) Try to resolve all A (ipv4) records for the given name.resolveAAAA
(String name) Try to resolve all AAAA (ipv6) records for the given name.resolveAAAAAndAwait
(String name) Blocking variant ofresolveAAAA(String)
.resolveAAAAAndForget
(String name) Variant ofresolveAAAA(String)
that ignores the result of the operation.resolveAAndAwait
(String name) Blocking variant ofresolveA(String)
.resolveAAndForget
(String name) Variant ofresolveA(String)
that ignores the result of the operation.resolveCNAME
(String name) Try to resolve the CNAME record for the given name.resolveCNAMEAndAwait
(String name) Blocking variant ofresolveCNAME(String)
.resolveCNAMEAndForget
(String name) Variant ofresolveCNAME(String)
that ignores the result of the operation.Try to resolve the MX records for the given name.resolveMXAndAwait
(String name) Blocking variant ofresolveMX(String)
.resolveMXAndForget
(String name) Variant ofresolveMX(String)
that ignores the result of the operation.Try to resolve the NS records for the given name.resolveNSAndAwait
(String name) Blocking variant ofresolveNS(String)
.resolveNSAndForget
(String name) Variant ofresolveNS(String)
that ignores the result of the operation.io.smallrye.mutiny.Uni<String>
resolvePTR
(String name) Try to resolve the PTR record for the given name.resolvePTRAndAwait
(String name) Blocking variant ofresolvePTR(String)
.resolvePTRAndForget
(String name) Variant ofresolvePTR(String)
that ignores the result of the operation.resolveSRV
(String name) Try to resolve the SRV records for the given name.resolveSRVAndAwait
(String name) Blocking variant ofresolveSRV(String)
.resolveSRVAndForget
(String name) Variant ofresolveSRV(String)
that ignores the result of the operation.resolveTXT
(String name) Try to resolve the TXT records for the given name.resolveTXTAndAwait
(String name) Blocking variant ofresolveTXT(String)
.resolveTXTAndForget
(String name) Variant ofresolveTXT(String)
that ignores the result of the operation.io.smallrye.mutiny.Uni<String>
reverseLookup
(String ipaddress) Try to do a reverse lookup of an IP address.reverseLookupAndAwait
(String ipaddress) Blocking variant ofreverseLookup(String)
.reverseLookupAndForget
(String ipaddress) Variant ofreverseLookup(String)
that ignores the result of the operation.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
DnsClient
public DnsClient(io.vertx.core.dns.DnsClient delegate) -
DnsClient
-
-
Method Details
-
getDelegate
public io.vertx.core.dns.DnsClient getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
lookup
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
lookupAndAwait
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:
- the String instance produced by the operation.
-
lookupAndForget
Variant oflookup(String)
that ignores the result of the operation.This method subscribes on the result of
lookup(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlookup(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name to resolve- Returns:
- the instance of DnsClient to chain method calls.
-
lookup4
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
lookup4AndAwait
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:
- the String instance produced by the operation.
-
lookup4AndForget
Variant oflookup4(String)
that ignores the result of the operation.This method subscribes on the result of
lookup4(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlookup4(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name to resolve- Returns:
- the instance of DnsClient to chain method calls.
-
lookup6
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
lookup6AndAwait
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:
- the String instance produced by the operation.
-
lookup6AndForget
Variant oflookup6(String)
that ignores the result of the operation.This method subscribes on the result of
lookup6(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlookup6(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name to resolve- Returns:
- the instance of DnsClient to chain method calls.
-
resolveA
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
resolveAAndAwait
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:
- the List
instance produced by the operation.
-
resolveAAndForget
Variant ofresolveA(String)
that ignores the result of the operation.This method subscribes on the result of
resolveA(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromresolveA(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name to resolve- Returns:
- the instance of DnsClient to chain method calls.
-
resolveAAAA
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
resolveAAAAAndAwait
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:
- the List
instance produced by the operation.
-
resolveAAAAAndForget
Variant ofresolveAAAA(String)
that ignores the result of the operation.This method subscribes on the result of
resolveAAAA(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromresolveAAAA(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name to resolve- Returns:
- the instance of DnsClient to chain method calls.
-
resolveCNAME
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
resolveCNAMEAndAwait
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:
- the List
instance produced by the operation.
-
resolveCNAMEAndForget
Variant ofresolveCNAME(String)
that ignores the result of the operation.This method subscribes on the result of
resolveCNAME(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromresolveCNAME(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name to resolve the CNAME for- Returns:
- the instance of DnsClient to chain method calls.
-
resolveMX
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
resolveMXAndAwait
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:
- the List
instance produced by the operation.
-
resolveMXAndForget
Variant ofresolveMX(String)
that ignores the result of the operation.This method subscribes on the result of
resolveMX(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromresolveMX(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name for which the MX records should be resolved- Returns:
- the instance of DnsClient to chain method calls.
-
resolveTXT
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
resolveTXTAndAwait
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:
- the List
instance produced by the operation.
-
resolveTXTAndForget
Variant ofresolveTXT(String)
that ignores the result of the operation.This method subscribes on the result of
resolveTXT(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromresolveTXT(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name for which the TXT records should be resolved- Returns:
- the instance of DnsClient to chain method calls.
-
resolvePTR
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
resolvePTRAndAwait
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:
- the String instance produced by the operation.
-
resolvePTRAndForget
Variant ofresolvePTR(String)
that ignores the result of the operation.This method subscribes on the result of
resolvePTR(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromresolvePTR(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name to resolve the PTR for- Returns:
- the instance of DnsClient to chain method calls.
-
resolveNS
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
resolveNSAndAwait
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:
- the List
instance produced by the operation.
-
resolveNSAndForget
Variant ofresolveNS(String)
that ignores the result of the operation.This method subscribes on the result of
resolveNS(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromresolveNS(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name for which the NS records should be resolved- Returns:
- the instance of DnsClient to chain method calls.
-
resolveSRV
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
resolveSRVAndAwait
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:
- the List
instance produced by the operation.
-
resolveSRVAndForget
Variant ofresolveSRV(String)
that ignores the result of the operation.This method subscribes on the result of
resolveSRV(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromresolveSRV(String)
but you don't need to compose it with other operations.- Parameters:
name
- the name for which the SRV records should be resolved- Returns:
- the instance of DnsClient to chain method calls.
-
reverseLookup
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:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
reverseLookupAndAwait
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:
- the String instance produced by the operation.
-
reverseLookupAndForget
Variant ofreverseLookup(String)
that ignores the result of the operation.This method subscribes on the result of
reverseLookup(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromreverseLookup(String)
but you don't need to compose it with other operations.- Parameters:
ipaddress
- the IP address to resolve the PTR for- Returns:
- the instance of DnsClient to chain method calls.
-
close
Close the client.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
closeAndAwait
Blocking variant ofclose()
.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).
- Returns:
- the Void instance produced by the operation.
-
closeAndForget
public void closeAndForget() -
newInstance
-