Interface GrpcClientStubFactory


public interface GrpcClientStubFactory
A factory that creates a gRPC client stub.
  • Method Details

    • findServiceDescriptor

      @Nullable ServiceDescriptor findServiceDescriptor​(Class<?> clientType)
      Returns a ServiceDescriptor for the clientType. null if the given clientType is unsupported.
    • newClientStub

      Object newClientStub​(Class<?> clientType, Channel channel)
      Returns a gRPC client stub from the specified clientType and Channel.