Auto Reconnect

XMLWordPrintableJSON

    • 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

        1. MongoDataStore.java
          2 kB
          Mohamed Nouh
        2. MongoTest.java
          0.6 kB
          Mohamed Nouh

            Assignee:
            Unassigned
            Reporter:
            Mohamed Nouh
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: