Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getter for channel in NettyTransportChannel #10319

Merged
merged 1 commit into from Mar 30, 2015

Conversation

jaymode
Copy link
Member

@jaymode jaymode commented Mar 30, 2015

Adds a getter for the actual netty channel in NettyTransportChannel. The
channel can be used by plugins that need access into netty when processing
requests.

@@ -140,4 +140,8 @@ public void sendResponse(Throwable error) throws IOException {
channel.write(buffer);
transportServiceAdapter.onResponseSent(requestId, action, error);
}

public Channel channel() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we call this getChannel

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. Renamed the method

@s1monw
Copy link
Contributor

s1monw commented Mar 30, 2015

LGTM - can you add a doc string

@jaymode
Copy link
Member Author

jaymode commented Mar 30, 2015

will add doc and push. thanks @s1monw

@s1monw
Copy link
Contributor

s1monw commented Mar 30, 2015

thank you!

Adds a getter for the actual netty channel in NettyTransportChannel. The
channel can be used by plugins that need access into netty when processing
requests.
@jaymode jaymode merged commit a2addaf into elastic:master Mar 30, 2015
@jaymode jaymode removed the review label Mar 30, 2015
@clintongormley clintongormley added the :Distributed/Network Http and internode communication implementations label May 29, 2015
@clintongormley clintongormley changed the title Netty: add getter for channel in NettyTransportChannel Add getter for channel in NettyTransportChannel Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Network Http and internode communication implementations >enhancement v1.6.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants