Package io.servicetalk.grpc.api
Interface MethodDescriptor<Req,Resp>
- Type Parameters:
Req- The type of request.Resp- The type of response.
public interface MethodDescriptor<Req,Resp>
Metadata that describes a specific RPC method.
-
Method Summary
Modifier and TypeMethodDescriptionhttpPath()Get the HTTP Path used by this method.Get the java method name corresponding to this method.Get theParameterDescriptorfor the request.Get theParameterDescriptorfor the response.
-
Method Details
-
httpPath
String httpPath()Get the HTTP Path used by this method.- Returns:
- The HTTP Path used by this method.
-
javaMethodName
String javaMethodName()Get the java method name corresponding to this method.- Returns:
- the java method name corresponding to this method.
-
requestDescriptor
ParameterDescriptor<Req> requestDescriptor()Get theParameterDescriptorfor the request.- Returns:
- the
ParameterDescriptorfor the request.
-
responseDescriptor
ParameterDescriptor<Resp> responseDescriptor()Get theParameterDescriptorfor the response.- Returns:
- the
ParameterDescriptorfor the response.
-