Details
-
Task
-
Resolution: Done
-
Trivial - P5
-
None
-
2.12.3
-
None
-
None
Description
I'm currently using the java driver, we've noticed that this is not auto reconnecting to mongodb by default. The below says autoConnectRetry has been deprecated, how can I use the connectTimeout property to have auto retry?
@Deprecated
public MongoClientOptions.Builder autoConnectRetry(boolean autoConnectRetry)
Deprecated. There is no replacement for this method. Use the connectTimeout property to control connection timeout.
Sets whether auto connect retry is enabled.
Parameters:
autoConnectRetry - auto connect retry