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 theParameterDescriptor
for the request.Get theParameterDescriptor
for 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 theParameterDescriptor
for the request.- Returns:
- the
ParameterDescriptor
for the request.
-
responseDescriptor
ParameterDescriptor<Resp> responseDescriptor()Get theParameterDescriptor
for the response.- Returns:
- the
ParameterDescriptor
for the response.
-