[JAVA-2202] Support for EpollEventLoop Group in async Driver Created: 01/Jun/16  Updated: 23/Jun/16  Resolved: 20/Jun/16

Status: Closed
Project: Java Driver
Component/s: Async
Affects Version/s: 3.2.2
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Neeraj Gupta Assignee: Ross Lawley
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS - 6.4 64 bit


Issue Links:
Duplicate
duplicates JAVA-2149 Configuring channel type in NettyStre... Closed

 Description   

Mongo Async driver when used in netty mode, gives an option to define EventLoopGroup in the constructor for NettyStreamFactoryFactory.

However it is not possible to use EpollEventLoopGroup since in NettyStream class in openAsync() bootstrap channel will always be NioSocketChannel.

NettyStream.java

 
     public void openAsync(final AsyncCompletionHandler<Void> handler) {
           Bootstrap bootstrap = new Bootstrap();
           bootstrap.group(workerGroup);
          bootstrap.channel(NioSocketChannel.class);

https://github.com/mongodb/mongo-java-driver/blob/3.2.x/driver-core/src/main/com/mongodb/connection/netty/NettyStream.java



 Comments   
Comment by Ross Lawley [ 20/Jun/16 ]

Hi neeraj.gupta,

Thank you for the ticket, I've marked it ticket as a duplicate of JAVA-2149 and will update that ticket with the progress. Please follow / watch that ticket for further updates.

Ross

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