MongoClientSettings.connectTimeout

The time to attempt a connection before timing out.

class MongoClientSettings
Duration connectTimeout;

Meta