Package io.grpc.stub
Class MetadataUtils.MetadataCapturingClientInterceptor.MetadataCapturingClientCall<ReqT,RespT>
java.lang.Object
io.grpc.ClientCall<ReqT,RespT>
io.grpc.PartialForwardingClientCall<ReqT,RespT>
io.grpc.ForwardingClientCall<ReqT,RespT>
io.grpc.ForwardingClientCall.SimpleForwardingClientCall<ReqT,RespT>
io.grpc.stub.MetadataUtils.MetadataCapturingClientInterceptor.MetadataCapturingClientCall<ReqT,RespT>
- Enclosing class:
MetadataUtils.MetadataCapturingClientInterceptor
private final class MetadataUtils.MetadataCapturingClientInterceptor.MetadataCapturingClientCall<ReqT,RespT>
extends ForwardingClientCall.SimpleForwardingClientCall<ReqT,RespT>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classNested classes/interfaces inherited from class io.grpc.ForwardingClientCall
ForwardingClientCall.SimpleForwardingClientCall<ReqT,RespT> Nested classes/interfaces inherited from class io.grpc.ClientCall
ClientCall.Listener<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstart(ClientCall.Listener<RespT> responseListener, Metadata headers) Start a call, usingresponseListenerfor processing response messages.Methods inherited from class io.grpc.ForwardingClientCall.SimpleForwardingClientCall
delegateMethods inherited from class io.grpc.ForwardingClientCall
sendMessageMethods inherited from class io.grpc.PartialForwardingClientCall
cancel, getAttributes, halfClose, isReady, request, setMessageCompression, toString
-
Constructor Details
-
MetadataCapturingClientCall
MetadataCapturingClientCall(ClientCall<ReqT, RespT> call)
-
-
Method Details
-
start
Description copied from class:ClientCallStart a call, usingresponseListenerfor 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
Metadatais not thread-safe, the caller must not access (read or write)headersafter this point.- Overrides:
startin classForwardingClientCall<ReqT,RespT> - Parameters:
responseListener- receives response messagesheaders- which can contain extra call metadata, e.g. authentication credentials.
-