-
Notifications
You must be signed in to change notification settings - Fork 3.9k
stub: stabilize StreamObserver APIs #7938
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
stub: stabilize StreamObserver APIs #7938
Conversation
@@ -50,7 +48,6 @@ | |||
* <p>DO NOT MOCK: The API is too complex to reliably mock. Use InProcessChannelBuilder to create | |||
* "real" RPCs suitable for testing. | |||
*/ | |||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1788") | |||
public abstract class CallStreamObserver<V> implements StreamObserver<V> { |
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.
I thought this class was to remain experimental.
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.
If this class remains experimental, then its subclasses should also be experimental. We can not have a stable class extend an experimental class.
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.
We talked of redefining the methods in the subclasses, so the only issue is if someone references CallStreamObserver directly.
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.
Reverted CallStreamObserver.java
.
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.
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.
I was referencing #1788 (comment) before.
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.
Redefined methods of CallStreamObserver
in subclasses.
Resolving #1788