Interface GrpcClientStubFactory


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

    Modifier and Type
    Method
    Description
    @Nullable io.grpc.ServiceDescriptor
    Returns a ServiceDescriptor for the clientType.
    newClientStub(Class<?> clientType, io.grpc.Channel channel)
    Returns a gRPC client stub from the specified clientType and Channel.
  • Method Details

    • findServiceDescriptor

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

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