Clarify the Javadoc for CallStreamObserver
The relevant part of the current Javadoc: https://github.com/grpc/grpc-java/blob/6b04fc18f30deb3519c389fe457b99cf5a8d99d0/stub/src/main/java/io/grpc/stub/CallStreamObserver.java#L25-L35
As far as I can tell, for any call, there are three implementations of StreamObserver involved:
- Implemented by the application, on the RPC client side ('inbound')
- Implemented by the framework, on the RPC client side ('outbound'),
ClientCallStreamObserver - Implemented by the framework, on the RPC server side ('outbound'),
ServerCallStreamObserver
I think it would be nice to clarify that. I've spent significant time trying to understand where does ClientCallStreamObserver appear, being confused by the premise that there are only two implementations of StreamObserver.
Sometime, look at examples will help understand the APIs. I do agree with you some of our javadocs can be improved, and we are welcoming any contribution that helps our project. If you can send a pr to make the documentations better, we will be glad to review and merge it.
reopen this bug. Couple more clarifications are necessary as @leventov pointed out in the https://github.com/grpc/grpc-java/pull/6561. @leventov, do you want to fix the other two?
No
Need to go through the PR pointed by @creamsoup for more clarification but the PR link is invalid as its redirecting to the same page. @leventov