Class GrpcProxyBuilder<T>
java.lang.Object
io.helidon.microprofile.grpc.client.GrpcProxyBuilder<T>
- Type Parameters:
T- the type of the interface to be proxied
- All Implemented Interfaces:
Builder<GrpcProxyBuilder<T>,,T> Supplier<T>
A builder for gRPC clients dynamic proxies.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a gRPC client dynamic proxy of the required type.static <T> GrpcProxyBuilder<T> Create aGrpcProxyBuilderthat can build gRPC dynamic proxies for a given gRPC service interface.
-
Method Details
-
create
Create aGrpcProxyBuilderthat can build gRPC dynamic proxies for a given gRPC service interface.The class passed to this method should be properly annotated with
Grpc.GrpcServiceandGrpc.GrpcMethodannotations 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
GrpcProxyBuilderthat can build dynamic proxies for the gRPC service
-
build
Build a gRPC client dynamic proxy of the required type.- Specified by:
buildin interfaceBuilder<GrpcProxyBuilder<T>,T> - Returns:
- a gRPC client dynamic proxy
-