Class ProxyServerCallHandler<RequestT,ResponseT>

java.lang.Object
dagger.grpc.server.ProxyServerCallHandler<RequestT,ResponseT>
Type Parameters:
RequestT - the type of the request payloads
ResponseT - 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.
  • 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 for methodDescriptor.
      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)
      Specified by:
      startCall in interface io.grpc.ServerCallHandler<RequestT,ResponseT>