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
api, core, services: make ProtoReflectionService interceptor compatible #6967
Merged
voidzcy
merged 16 commits into
grpc:master
from
voidzcy:bugfix/make_proto_reflection_service_interceptable
May 1, 2020
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4f7462d
Eliminate InternalNotifyOnServerBuilder interface.
voidzcy 7d8547a
Expose server reference on ServerCall interface.
voidzcy 1952927
Add getServer() API implementation to subclasses.
voidzcy 5b51f87
Obtain server via a server interceptor.
voidzcy 9273cdd
Eliminate callback for server build.
voidzcy d268012
Add default implementation for ServerCall.getServer().
voidzcy 933d099
Add ExperimentalApi annotation.
voidzcy 130adde
Remove comment requirement for using one reflection service instance …
voidzcy f50789b
Add a simple test case covering a single reflection service instance …
voidzcy acb2a44
Use explicit lock
voidzcy 19fd730
Put server into Context.
voidzcy b0d15a6
Add an internal accessor for accessing the Context key.
voidzcy d3935fa
Change ProtoReflectionService to obtain Server from Context.
voidzcy e4a6b9b
Revert changes for exposing Server via ServerCall.
voidzcy 9a979c5
Move the Context key definition and accessor to io.grpc.
voidzcy 6277cac
Makee context key package private.
voidzcy File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh. I missed this before. Of course it was already limited to one server. Sorry for asking for the WeakHashMap, although it is nicer that way. I guess previously we'd have just returned wrong data? Yeah, using the WeakHashMap is much nicer for users.