Package com.mongodb.spi.dns
Interface InetAddressResolverProvider
public interface InetAddressResolverProvider
Service-provider class for
InetAddressResolver
.
A resolver provider is a factory for custom implementations of InetAddress resolvers. A resolver defines operations for looking up (resolving) host names.
The driver discovers implementations of this interface via ServiceLoader
.
If more fine-grained control is required for multi-tenant applications, an InetAddress resolver
can be configured via MongoClientSettings.Builder.inetAddressResolver(InetAddressResolver)
.
- Since:
- 4.10
- See Also:
-
Method Summary
-
Method Details
-
create
InetAddressResolver create()Construct a new instance of aInetAddressResolver
.- Returns:
- a
InetAddressResolver
-