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 Classes Modifier and Type Class Description private class
MetadataUtils.MetadataCapturingClientInterceptor.MetadataCapturingClientCall.MetadataCapturingClientCallListener
-
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 Constructor Description MetadataCapturingClientCall(ClientCall<ReqT,RespT> call)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
MetadataCapturingClientCall
MetadataCapturingClientCall(ClientCall<ReqT,RespT> call)
-
-
Method Detail
-
start
public void start(ClientCall.Listener<RespT> responseListener, Metadata headers)
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.
-
-