@Immutable public class Method<RequestT,ResponseT> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <RequestT,ResponseT> |
create(io.grpc.MethodType type,
String name,
io.grpc.Marshaller<RequestT> requestMarshaller,
io.grpc.Marshaller<ResponseT> responseMarshaller)
Constructor.
|
String |
getName()
The name of the method, not including the service name.
|
io.grpc.Marshaller<RequestT> |
getRequestMarshaller()
The marshaller used to serialize/deserialize the request.
|
io.grpc.Marshaller<ResponseT> |
getResponseMarshaller()
The marshaller used to serialize/deserialize the response.
|
io.grpc.MethodType |
getType()
The call type of the method.
|
public static <RequestT,ResponseT> Method<RequestT,ResponseT> create(io.grpc.MethodType type, String name, io.grpc.Marshaller<RequestT> requestMarshaller, io.grpc.Marshaller<ResponseT> responseMarshaller)
type - the call type of the methodname - the name of the method, not including the service namerequestMarshaller - used to serialize/deserialize the requestresponseMarshaller - used to serialize/deserialize the responsepublic io.grpc.MethodType getType()
public String getName()
public io.grpc.Marshaller<RequestT> getRequestMarshaller()
public io.grpc.Marshaller<ResponseT> getResponseMarshaller()