Skip to content

core: finalize convenient overrides on LoadBalancer.Helper and Subchannel.#4954

Merged
zhangkun83 merged 2 commits into
grpc:masterfrom
zhangkun83:final_methods_on_lb_helper
Oct 16, 2018
Merged

core: finalize convenient overrides on LoadBalancer.Helper and Subchannel.#4954
zhangkun83 merged 2 commits into
grpc:masterfrom
zhangkun83:final_methods_on_lb_helper

Conversation

@zhangkun83

Copy link
Copy Markdown
Contributor

Those overrides are kept for backward compatibility and convenience
for callers. Documentation already says implementations should not
override them. Making them final reduces confusion around which
override should be verified in tests and be overridden in forwarding
classes, thus prevents bugs caused by such confusion.

…nnel.

Those overrides are kept for backward compatibility and convenience
for callers.  Documentation already says implementations should not
override them.  Making them final reduces confusion around which
override should be verified in tests and be overridden in forwarding
classes, thus prevents bugs caused by such confusion.
@zhangkun83 zhangkun83 requested a review from ejona86 October 16, 2018 14:42
* <p>The LoadBalancer is responsible for closing unused Subchannels, and closing all
* Subchannels within {@link #shutdown}.
*
* <p>The default implementation calls {@link #createSubchannel(List, Attributes)}.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we still specify that this method calls the other method?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure. I have change the javadoc to refer to the other method.

@zhangkun83 zhangkun83 merged commit 6adc179 into grpc:master Oct 16, 2018
@zhangkun83 zhangkun83 deleted the final_methods_on_lb_helper branch October 16, 2018 16:44
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants