[JAVA-2226] Support streamType=netty in the connection string Created: 15/Jun/16  Updated: 19/Oct/16  Resolved: 23/Jun/16

Status: Closed
Project: Java Driver
Component/s: Async, Configuration
Affects Version/s: None
Fix Version/s: 3.3.0

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There is no way currently to use a connection string with the async driver to connect to a cluster via SSL. This is because the default async stream type, AsynchronousSocketChannelStream, does not support SSL. But in order to use NettySteam, you need to configure the async MongoClient with a NettyStreamFactoryFactory, which can not be done via connection string.

To make this simple use case easier, add connection string support for streamType=netty for the asynchronous driver.



 Comments   
Comment by Githook User [ 23/Jun/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2226 Ignore test of NIO2 stream type if SSL is enable, as the drivers's NIO2 implementation does not support SSL
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/bd473d89128b3fcc2cf79f80ee6086aedd166547

Comment by Githook User [ 23/Jun/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2226: Split one test into two for clarity and ignore one test on Java 6, where NIO2 is not supported
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/903a89f829925cd64de016460b523cd1e04b4c75

Comment by Githook User [ 23/Jun/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2226: Add support for streamType=netty to connection string and apply it to async MongoClient construction
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/9d348e0f00892915f23184d5891022232c827d05

Comment by Ross Lawley [ 16/Jun/16 ]

Any other values to support for streamType? nio

Generated at Thu Feb 08 08:56:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.