-
Type:
Task
-
Resolution: Done
-
Priority:
Trivial - P5
-
None
-
Affects Version/s: 2.12.3
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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