Skip to content

Clarify the Javadoc for CallStreamObserver #6552

Description

@leventov

The relevant part of the current Javadoc:

* <p>In any call there are logically two {@link StreamObserver} implementations:
* <ul>
* <li>'inbound' - which the GRPC runtime calls when it receives messages from the
* remote peer. This is implemented by the application.
* </li>
* <li>'outbound' - which the GRPC runtime provides to the application which it uses to
* send messages to the remote peer.
* </li>
* </ul>
*
* <p>Implementations of this class represent the 'outbound' message stream.

As far as I can tell, for any call, there are three implementations of StreamObserver involved:

  1. Implemented by the application, on the RPC client side ('inbound')
  2. Implemented by the framework, on the RPC client side ('outbound'), ClientCallStreamObserver
  3. 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.

Activity

  1. ran-su commented on Dec 19, 2019

    @ran-su
    Member

    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.

  2. creamsoup commented on Jan 30, 2020

    @creamsoup
    Contributor

    reopen this bug. Couple more clarifications are necessary as @leventov pointed out in the #6561.
    @leventov, do you want to fix the other two?

  3. leventov commented on Jan 31, 2020

    @leventov
    ContributorAuthor

    No

  4. self-assigned this
    on Jan 31, 2020
  5. added this to the 1.28 milestone on Jan 31, 2020
  6. modified the milestones: 1.28, 1.29 on Feb 27, 2020
  7. modified the milestones: 1.29, 1.30 on Apr 7, 2020
  8. modified the milestones: 1.30, Next on May 19, 2020
  9. removed their assignment
    on Jul 8, 2020
  10. kumarakshays commented on Jan 21, 2025

    @kumarakshays

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions