Class GrpcClientProxyBuilder<T>
- java.lang.Object
-
- io.helidon.microprofile.grpc.client.GrpcClientProxyBuilder<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tbuild()Build a gRPC client dynamic proxy of the required type.static <T> GrpcClientProxyBuilder<T>create(io.grpc.Channel channel, Class<T> type)Create a GrpcClientProxyBuilder that can build gRPC dynamic proxies for a given gRPC service interface.
-
-
-
Method Detail
-
create
public static <T> GrpcClientProxyBuilder<T> create(io.grpc.Channel channel, Class<T> type)
Create a GrpcClientProxyBuilder that can build gRPC dynamic proxies for a given gRPC service interface.The class passed to this method should be properly annotated with
RpcServiceandRpcMethodannotations so that the proxy can properly route calls to the server.- Type Parameters:
T- the service type- Parameters:
channel- theChannelto connect to the servertype- the service type- Returns:
- a
GrpcClientProxyBuilderthat can build dynamic proxies for the gRPC service
-
-