Package dagger.grpc.server
Class ProxyServerCallHandler<RequestT,ResponseT>
java.lang.Object
dagger.grpc.server.ProxyServerCallHandler<RequestT,ResponseT>
- Type Parameters:
RequestT
- the type of the request payloadsResponseT
- the type of the response payloads
- All Implemented Interfaces:
io.grpc.ServerCallHandler<InputStream,
InputStream>
public final class ProxyServerCallHandler<RequestT,ResponseT>
extends Object
implements io.grpc.ServerCallHandler<InputStream,InputStream>
A
ServerCallHandler
that handles calls for a particular method by delegating to a handler
in a ServerServiceDefinition
returned by a factory.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A factory for theServerServiceDefinition
that aProxyServerCallHandler
delegates to. -
Method Summary
Modifier and TypeMethodDescriptionstatic <RequestT,
ResponseT>
io.grpc.ServerMethodDefinition<InputStream,InputStream> proxyMethod
(io.grpc.MethodDescriptor<RequestT, ResponseT> delegateMethodDescriptor, ProxyServerCallHandler.ServiceDefinitionFactory delegateServiceDefinitionFactory) Returns a proxy method definition formethodDescriptor
.io.grpc.ServerCall.Listener<InputStream>
startCall
(io.grpc.ServerCall<InputStream, InputStream> call, io.grpc.Metadata headers)
-
Method Details
-
proxyMethod
public static <RequestT,ResponseT> io.grpc.ServerMethodDefinition<InputStream,InputStream> proxyMethod(io.grpc.MethodDescriptor<RequestT, ResponseT> delegateMethodDescriptor, ProxyServerCallHandler.ServiceDefinitionFactory delegateServiceDefinitionFactory) Returns a proxy method definition formethodDescriptor
.- Parameters:
delegateServiceDefinitionFactory
- factory for the delegate service definition
-
startCall
public io.grpc.ServerCall.Listener<InputStream> startCall(io.grpc.ServerCall<InputStream, InputStream> call, io.grpc.Metadata headers)
-