Package io.servicetalk.grpc.api
Interface GrpcMetadata
- All Known Subinterfaces:
GrpcClientMetadata,GrpcServiceContext
- All Known Implementing Classes:
DefaultGrpcClientMetadata,Health.CheckMetadata,Health.WatchMetadata
public interface GrpcMetadata
Metadata for a gRPC call.
-
Method Summary
Modifier and TypeMethodDescriptionpath()Deprecated.default ContextMapA request context associated with thisGrpcMetadatathat translates intoHttpMetaData.context().default ContextMapA response context associated with thisGrpcMetadatathat translates intoHttpMetaData.context().
-
Method Details
-
path
Deprecated.Returns the path for the associated gRPC method.- Returns:
- The path for the associated gRPC method.
-
requestContext
A request context associated with thisGrpcMetadatathat translates intoHttpMetaData.context().Context can be used to associate a state with a request without serializing its state on the wire or transmit a state between HTTP and gRPC layers.
- Returns:
- a request context associated with this
GrpcMetadatathat translates intoHttpMetaData.context().
-
responseContext
A response context associated with thisGrpcMetadatathat translates intoHttpMetaData.context().Context can be used to associate a state with a response without serializing its state on the wire or transmit a state between HTTP and gRPC layers.
- Returns:
- a response context associated with this
GrpcMetadatathat translates intoHttpMetaData.context().
-
MethodDescriptor.httpPath().