Class MetadataUtils.MetadataCapturingClientInterceptor.MetadataCapturingClientCall.MetadataCapturingClientCallListener
java.lang.Object
io.grpc.ClientCall.Listener<RespT>
io.grpc.PartialForwardingClientCallListener<RespT>
io.grpc.ForwardingClientCallListener<RespT>
io.grpc.ForwardingClientCallListener.SimpleForwardingClientCallListener<RespT>
io.grpc.stub.MetadataUtils.MetadataCapturingClientInterceptor.MetadataCapturingClientCall.MetadataCapturingClientCallListener
- Enclosing class:
MetadataUtils.MetadataCapturingClientInterceptor.MetadataCapturingClientCall<ReqT,RespT>
private final class MetadataUtils.MetadataCapturingClientInterceptor.MetadataCapturingClientCall.MetadataCapturingClientCallListener
extends ForwardingClientCallListener.SimpleForwardingClientCallListener<RespT>
-
Nested Class Summary
Nested classes/interfaces inherited from class ForwardingClientCallListener
ForwardingClientCallListener.SimpleForwardingClientCallListener<RespT> -
Constructor Summary
ConstructorsConstructorDescriptionMetadataCapturingClientCallListener(ClientCall.Listener<RespT> responseListener) -
Method Summary
Methods inherited from class ForwardingClientCallListener.SimpleForwardingClientCallListener
delegateMethods inherited from class ForwardingClientCallListener
onMessageMethods inherited from class PartialForwardingClientCallListener
onReady, toString
-
Constructor Details
-
MetadataCapturingClientCallListener
MetadataCapturingClientCallListener(ClientCall.Listener<RespT> responseListener)
-
-
Method Details
-
onHeaders
Description copied from class:ClientCall.ListenerThe response headers have been received. Headers always precede messages.Since
Metadatais not thread-safe, the caller must not access (read or write)headersafter this point.- Overrides:
onHeadersin classPartialForwardingClientCallListener<RespT>- Parameters:
headers- containing metadata sent by the server at the start of the response.
-
onClose
Description copied from class:ClientCall.ListenerThe ClientCall has been closed. Any additional calls to theClientCallwill not be processed by the server. No further receiving will occur and no further notifications will be made.Since
Metadatais not thread-safe, the caller must not access (read or write)trailersafter this point.If
statusreturns false forStatus.isOk(), then the call failed. An additional block of trailer metadata may be received at the end of the call from the server. An emptyMetadataobject is passed if no trailers are received.This method should not throw. If this method throws, there is no way to be notified of the exception. Implementations should therefore be careful of exceptions which can accidentally leak resources.
- Overrides:
onClosein classPartialForwardingClientCallListener<RespT>- Parameters:
status- the result of the remote call.trailers- metadata provided at call completion.
-