Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-611

AppConfiguration - SyncTimeoutOptions

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sync
    • None

      Add support for configuring various sync timeouts.

      The Swift API is here: https://www.mongodb.com/docs/realm-sdks/objc/latest/Classes/RLMSyncTimeoutOptions.html, but the Kotlin API might look slightly different as we haven't really supported nested configuration objects until now.

      One suggestion might be to have nested builders, which create an DSL, something like:

      ```
      val appConfig = AppConfiguration.Builder("appId")
      .syncTimeOuts

      { // this: SyncTimeoutsBuilder pingKeepalivePeriod = 10.seconds }

      .build()
      ```

            Assignee:
            Unassigned Unassigned
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: