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

ConnectionString streamType not applied to MongoClientSettings

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Configuration
    • None

    Description

      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

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: