Package io.grpc

Class ClientInterceptors.CheckedForwardingClientCall<ReqT,​RespT>

    • Constructor Detail

      • CheckedForwardingClientCall

        protected CheckedForwardingClientCall​(ClientCall<ReqT,​RespT> delegate)
    • Method Detail

      • checkedStart

        protected abstract void checkedStart​(ClientCall.Listener<RespT> responseListener,
                                             Metadata headers)
                                      throws java.lang.Exception
        Subclasses implement the start logic here that would normally belong to start().

        Implementation should call this.delegate().start() in the normal path. Exceptions may safely be thrown prior to calling this.delegate().start(). Such exceptions will be handled by CheckedForwardingClientCall and be delivered to responseListener. Exceptions must not be thrown after calling this.delegate().start(), as this can result in ClientCall.Listener.onClose(io.grpc.Status, io.grpc.Metadata) being called multiple times.

        Throws:
        java.lang.Exception