Allow injection of EventLoopGroup and ByteBufAllocator as part of netty 4 customization

Description

We want:

  • Be able to “inject” the EventLoopGroup to use. As we already have EventLoopGroup’s created we would like to be able to inject ours to share resources. This would even allow us to use the same EventLoop for the driver and the actual connection of our app and so eliminate context-switching.

  • Be able to “inject” ByteBufAllocator. Again this is about resource sharing.

Related jira:

Environment

None

Pull Requests

None

Activity

Show:
Olivier Michallat
March 18, 2015, 10:25 AM

Planning this for 2.0.10 since it's closely related to JAVA-640.

Olivier Michallat
March 19, 2015, 10:38 AM

Important point to remember: do not shutdown the EventLoopGroup if it was passed from outside (this is currently done in Connection.Factory.shutdown).

Fixed

Assignee

Alexandre Dutra

Reporter

Vishy Kasar

Labels

None

PM Priority

None

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Components

Priority

Major
Configure