DnsClientProvider (driver-core 5.5.0 API) (original) (raw)

Package com.mongodb.spi.dns

Interface DnsClientProvider


public interface DnsClientProvider

Service-provider class for DnsClient.

A resolver provider is a factory for custom implementations ofa DNS client. A DNS client defines operations for looking up DNS records for a given type.

The driver discovers implementations of this interface via ServiceLoader.

If more fine-grained control is required for multi-tenant applications, ana DNS client can be configured viaMongoClientSettings.Builder.dnsClient(DnsClient).

Since:

4.6

See Also:

Modifier and Type
Method
Description
[DnsClient](DnsClient.html "interface in com.mongodb.spi.dns")
[create](#create%28%29)()
Construct a new instance of a DnsClient.