Package io.grpc

Class ForwardingClientCall<ReqT,​RespT>

    • Constructor Detail

      • ForwardingClientCall

        public ForwardingClientCall()
    • Method Detail

      • start

        public void start​(ClientCall.Listener<RespT> responseListener,
                          Metadata headers)
        Description copied from class: ClientCall
        Start a call, using responseListener for processing response messages.

        It must be called prior to any other method on this class, except for ClientCall.cancel(java.lang.String, java.lang.Throwable) which may be called at any time.

        Since Metadata is not thread-safe, the caller must not access (read or write) headers after this point.

        Specified by:
        start in class ClientCall<ReqT,​RespT>
        Parameters:
        responseListener - receives response messages
        headers - which can contain extra call metadata, e.g. authentication credentials.
      • sendMessage

        public void sendMessage​(ReqT message)
        Description copied from class: ClientCall
        Send a request message to the server. May be called zero or more times depending on how many messages the server is willing to accept for the operation.
        Specified by:
        sendMessage in class ClientCall<ReqT,​RespT>
        Parameters:
        message - message to be sent to the server.