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 class
Nested 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 TypeMethodDescriptionvoid
start
(ClientCall.Listener<RespT> responseListener, Metadata headers) Start a call, usingresponseListener
for processing response messages.Methods inherited from class io.grpc.ForwardingClientCall.SimpleForwardingClientCall
delegate
Methods inherited from class io.grpc.ForwardingClientCall
sendMessage
Methods 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:ClientCall
Start a call, usingresponseListener
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.- Overrides:
start
in classForwardingClientCall<ReqT,
RespT> - Parameters:
responseListener
- receives response messagesheaders
- which can contain extra call metadata, e.g. authentication credentials.
-