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 the original non Mutiny-ified interface.
- Author:
- Norman Maurer
- See Also:
-
DnsClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>close()Close the client.voidClose the client.Close the client.booleanio.vertx.core.dns.DnsClientGet the delegate instance.inthashCode()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) Try to lookup the A (ipv4) record for the given name.lookup4AndForget(String name) Try to lookup the A (ipv4) record for the given name.io.smallrye.mutiny.Uni<String>Try to lookup the AAAA (ipv6) record for the given name.lookup6AndAwait(String name) Try to lookup the AAAA (ipv6) record for the given name.lookup6AndForget(String name) Try to lookup the AAAA (ipv6) record for the given name.lookupAndAwait(String name) Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name.lookupAndForget(String name) Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name.static DnsClientnewInstance(io.vertx.core.dns.DnsClient delegate) Creates a new instance of theDnsClient.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) Try to resolve all AAAA (ipv6) records for the given name.resolveAAAAAndForget(String name) Try to resolve all AAAA (ipv6) records for the given name.resolveAAndAwait(String name) Try to resolve all A (ipv4) records for the given name.resolveAAndForget(String name) Try to resolve all A (ipv4) records for the given name.resolveCNAME(String name) Try to resolve the CNAME record for the given name.resolveCNAMEAndAwait(String name) Try to resolve the CNAME record for the given name.resolveCNAMEAndForget(String name) Try to resolve the CNAME record for the given name.io.smallrye.mutiny.Uni<List<io.vertx.core.dns.MxRecord>>Try to resolve the MX records for the given name.List<io.vertx.core.dns.MxRecord>resolveMXAndAwait(String name) Try to resolve the MX records for the given name.resolveMXAndForget(String name) Try to resolve the MX records for the given name.Try to resolve the NS records for the given name.resolveNSAndAwait(String name) Try to resolve the NS records for the given name.resolveNSAndForget(String name) Try to resolve the NS records for the given name.io.smallrye.mutiny.Uni<String>resolvePTR(String name) Try to resolve the PTR record for the given name.resolvePTRAndAwait(String name) Try to resolve the PTR record for the given name.resolvePTRAndForget(String name) Try to resolve the PTR record for the given name.io.smallrye.mutiny.Uni<List<io.vertx.core.dns.SrvRecord>>resolveSRV(String name) Try to resolve the SRV records for the given name.List<io.vertx.core.dns.SrvRecord>resolveSRVAndAwait(String name) Try to resolve the SRV records for the given name.resolveSRVAndForget(String name) Try to resolve the SRV records for the given name.resolveTXT(String name) Try to resolve the TXT records for the given name.resolveTXTAndAwait(String name) Try to resolve the TXT records for the given name.resolveTXTAndForget(String name) Try to resolve the TXT records for the given name.io.smallrye.mutiny.Uni<String>reverseLookup(String ipaddress) Try to do a reverse lookup of an IP address.reverseLookupAndAwait(String ipaddress) Try to do a reverse lookup of an IP address.reverseLookupAndForget(String ipaddress) Try to do a reverse lookup of an IP address.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
DnsClient
public DnsClient(io.vertx.core.dns.DnsClient delegate) Create a new instance ofDnsClientdelegating to the given (non-null) instance ofDnsClient. -
DnsClient
-
-
Method Details
-
getDelegate
public io.vertx.core.dns.DnsClient getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
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. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
name- the name to resolve- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.lookup(String)
-
lookupAndAwait
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
String. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name to resolve- Returns:
- The operation result
- See Also:
-
DnsClient.lookup(String)
-
lookupAndForget
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 ignores the
Stringresult or any failure.- Parameters:
name- the name to resolve- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.lookup(String)
-
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. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
name- the name to resolve- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.lookup4(String)
-
lookup4AndAwait
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
String. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name to resolve- Returns:
- The operation result
- See Also:
-
DnsClient.lookup4(String)
-
lookup4AndForget
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 ignores the
Stringresult or any failure.- Parameters:
name- the name to resolve- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.lookup4(String)
-
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. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
name- the name to resolve- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.lookup6(String)
-
lookup6AndAwait
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
String. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name to resolve- Returns:
- The operation result
- See Also:
-
DnsClient.lookup6(String)
-
lookup6AndForget
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 ignores the
Stringresult or any failure.- Parameters:
name- the name to resolve- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.lookup6(String)
-
resolveA
Try to resolve all A (ipv4) records for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
name- the name to resolve- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.resolveA(String)
-
resolveAAndAwait
Try to resolve all A (ipv4) records for the given name.Unlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name to resolve- Returns:
- The operation result
- See Also:
-
DnsClient.resolveA(String)
-
resolveAAndForget
Try to resolve all A (ipv4) records for the given name.Unlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Parameters:
name- the name to resolve- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.resolveA(String)
-
resolveAAAA
Try to resolve all AAAA (ipv6) records for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
name- the name to resolve- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.resolveAAAA(String)
-
resolveAAAAAndAwait
Try to resolve all AAAA (ipv6) records for the given name.Unlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name to resolve- Returns:
- The operation result
- See Also:
-
DnsClient.resolveAAAA(String)
-
resolveAAAAAndForget
Try to resolve all AAAA (ipv6) records for the given name.Unlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Parameters:
name- the name to resolve- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.resolveAAAA(String)
-
resolveCNAME
Try to resolve the CNAME record for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
name- the name to resolve the CNAME for- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.resolveCNAME(String)
-
resolveCNAMEAndAwait
Try to resolve the CNAME record for the given name.Unlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name to resolve the CNAME for- Returns:
- The operation result
- See Also:
-
DnsClient.resolveCNAME(String)
-
resolveCNAMEAndForget
Try to resolve the CNAME record for the given name.Unlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Parameters:
name- the name to resolve the CNAME for- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.resolveCNAME(String)
-
resolveMX
@CheckReturnValue public io.smallrye.mutiny.Uni<List<io.vertx.core.dns.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. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.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
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.resolveMX(String)
-
resolveMXAndAwait
Try to resolve the MX records for the given name.Unlike the bare Vert.x variant, this method returns a
List<io.vertx.core.dns.MxRecord>. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name for which the MX records should be resolved- Returns:
- The operation result
- See Also:
-
DnsClient.resolveMX(String)
-
resolveMXAndForget
Try to resolve the MX records for the given name.Unlike the bare Vert.x variant, this method ignores the
List<io.vertx.core.dns.MxRecord>result or any failure.- Parameters:
name- the name for which the MX records should be resolved- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.resolveMX(String)
-
resolveTXT
Try to resolve the TXT records for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.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
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.resolveTXT(String)
-
resolveTXTAndAwait
Try to resolve the TXT records for the given name.Unlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name for which the TXT records should be resolved- Returns:
- The operation result
- See Also:
-
DnsClient.resolveTXT(String)
-
resolveTXTAndForget
Try to resolve the TXT records for the given name.Unlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Parameters:
name- the name for which the TXT records should be resolved- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.resolveTXT(String)
-
resolvePTR
Try to resolve the PTR record for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
name- the name to resolve the PTR for- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.resolvePTR(String)
-
resolvePTRAndAwait
Try to resolve the PTR record for the given name.Unlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name to resolve the PTR for- Returns:
- The operation result
- See Also:
-
DnsClient.resolvePTR(String)
-
resolvePTRAndForget
Try to resolve the PTR record for the given name.Unlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Parameters:
name- the name to resolve the PTR for- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.resolvePTR(String)
-
resolveNS
Try to resolve the NS records for the given name.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.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
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.resolveNS(String)
-
resolveNSAndAwait
Try to resolve the NS records for the given name.Unlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name for which the NS records should be resolved- Returns:
- The operation result
- See Also:
-
DnsClient.resolveNS(String)
-
resolveNSAndForget
Try to resolve the NS records for the given name.Unlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Parameters:
name- the name for which the NS records should be resolved- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.resolveNS(String)
-
resolveSRV
@CheckReturnValue public io.smallrye.mutiny.Uni<List<io.vertx.core.dns.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. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.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
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.resolveSRV(String)
-
resolveSRVAndAwait
Try to resolve the SRV records for the given name.Unlike the bare Vert.x variant, this method returns a
List<io.vertx.core.dns.SrvRecord>. This method awaits indefinitely 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 aRuntimeException).- Parameters:
name- the name for which the SRV records should be resolved- Returns:
- The operation result
- See Also:
-
DnsClient.resolveSRV(String)
-
resolveSRVAndForget
Try to resolve the SRV records for the given name.Unlike the bare Vert.x variant, this method ignores the
List<io.vertx.core.dns.SrvRecord>result or any failure.- Parameters:
name- the name for which the SRV records should be resolved- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.resolveSRV(String)
-
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. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
ipaddress- the IP address to resolve the PTR for- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.reverseLookup(String)
-
reverseLookupAndAwait
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
String. This method awaits indefinitely 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 aRuntimeException).- Parameters:
ipaddress- the IP address to resolve the PTR for- Returns:
- The operation result
- See Also:
-
DnsClient.reverseLookup(String)
-
reverseLookupAndForget
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 ignores the
Stringresult or any failure.- Parameters:
ipaddress- the IP address to resolve the PTR for- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.reverseLookup(String)
-
close
Close the client.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
DnsClient.close()
-
closeAndAwait
public void closeAndAwait()Close the client.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
DnsClient.close()
-
closeAndForget
Close the client.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
DnsClient.close()
-
newInstance
Creates a new instance of theDnsClient. -
hashCode
public int hashCode() -
equals
-
toString
-