RequestT
- the type of the request payloadsResponseT
- the type of the response payloadspublic final class ProxyServerCallHandler<RequestT,ResponseT>
extends java.lang.Object
implements io.grpc.ServerCallHandler<java.io.InputStream,java.io.InputStream>
ServerCallHandler
that handles calls for a particular method by delegating to a handler
in a ServerServiceDefinition
returned by a factory.Modifier and Type | Class and Description |
---|---|
static interface |
ProxyServerCallHandler.ServiceDefinitionFactory
A factory for the
ServerServiceDefinition that a ProxyServerCallHandler
delegates to. |
Modifier and Type | Method and Description |
---|---|
static <RequestT,ResponseT> |
proxyMethod(io.grpc.MethodDescriptor<RequestT,ResponseT> delegateMethodDescriptor,
ProxyServerCallHandler.ServiceDefinitionFactory delegateServiceDefinitionFactory)
Returns a proxy method definition for
methodDescriptor . |
io.grpc.ServerCall.Listener<java.io.InputStream> |
startCall(io.grpc.ServerCall<java.io.InputStream,java.io.InputStream> call,
io.grpc.Metadata headers) |
public static <RequestT,ResponseT> io.grpc.ServerMethodDefinition<java.io.InputStream,java.io.InputStream> proxyMethod(io.grpc.MethodDescriptor<RequestT,ResponseT> delegateMethodDescriptor, ProxyServerCallHandler.ServiceDefinitionFactory delegateServiceDefinitionFactory)
methodDescriptor
.delegateServiceDefinitionFactory
- factory for the delegate service definitionpublic io.grpc.ServerCall.Listener<java.io.InputStream> startCall(io.grpc.ServerCall<java.io.InputStream,java.io.InputStream> call, io.grpc.Metadata headers)
startCall
in interface io.grpc.ServerCallHandler<java.io.InputStream,java.io.InputStream>