Pymongo has a connectTimeoutMS option for this, it seems that java driver doesn’t provide that.
Hi Umesh,
Have you found the solution for this ?
In MongoDB Java Driver 3.4, the MongoClientURI class supports connection configuration for connectTimeoutMS
. This configuration will determine how long a connection can take to be opened before timing out.
Regards,
Wan.