ConnectionString streamType not applied to MongoClientSettings

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Configuration
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeffrey Yemin
            Reporter:
            Graeme Rocher
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: