Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2884

ConnectionString streamType not applied to MongoClientSettings

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Configuration
    • None

      It seems there is no way to specify the streamType and also provide custom settings to mongo (like the codecs etc.) this is because the method in the com.mongodb.async.client.MongoClients is private:

       

      private static MongoClient create(final MongoClientSettings settings,
                                            @Nullable final MongoDriverInformation mongoDriverInformation,
                                            @Nullable final String requestedStreamType)
      

      So if you pass a ConnectionString you cannot specify codecs. If you pass a MongoClientSettings you can specify codecs but not the requestedStreamType

       

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: