RequestT
- the type of the request payloadsResponseT
- the type of the response payloadspublic final class ProxyServerCallHandler<RequestT,ResponseT> extends Object implements io.grpc.ServerCallHandler<InputStream,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<InputStream> |
startCall(io.grpc.ServerCall<InputStream,InputStream> call,
io.grpc.Metadata headers) |
public static <RequestT,ResponseT> io.grpc.ServerMethodDefinition<InputStream,InputStream> proxyMethod(io.grpc.MethodDescriptor<RequestT,ResponseT> delegateMethodDescriptor, ProxyServerCallHandler.ServiceDefinitionFactory delegateServiceDefinitionFactory)
methodDescriptor
.delegateServiceDefinitionFactory
- factory for the delegate service definitionpublic io.grpc.ServerCall.Listener<InputStream> startCall(io.grpc.ServerCall<InputStream,InputStream> call, io.grpc.Metadata headers)
startCall
in interface io.grpc.ServerCallHandler<InputStream,InputStream>
Copyright © 2012–2017 The Dagger Authors. All rights reserved.