Package com.google.api.gax.grpc
Interface ResponseMetadataHandler
- All Known Implementing Classes:
GrpcResponseMetadata
public interface ResponseMetadataHandler
An interface to handle metadata returned from an RPC. A ResponseMetadataHandler is used by the
GrpcMetadataHandlerInterceptor class to provide custom handling of the returned headers and
trailers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonHeaders(io.grpc.Metadata metadata) Handle the headers returned by an RPC.voidonTrailers(io.grpc.Metadata metadata) Handle the trailers returned by an RPC.
-
Method Details
-
onHeaders
void onHeaders(io.grpc.Metadata metadata) Handle the headers returned by an RPC. -
onTrailers
void onTrailers(io.grpc.Metadata metadata) Handle the trailers returned by an RPC.
-