Class GrpcChannelsProvider.Builder
java.lang.Object
io.helidon.microprofile.grpc.client.GrpcChannelsProvider.Builder
- All Implemented Interfaces:
Builder<GrpcChannelsProvider.Builder,,GrpcChannelsProvider> Supplier<GrpcChannelsProvider>
- Enclosing class:
GrpcChannelsProvider
public static class GrpcChannelsProvider.Builder
extends Object
implements Builder<GrpcChannelsProvider.Builder,GrpcChannelsProvider>
Builder builds an instance of
GrpcChannelsProvider.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance ofGrpcChannelsProviderfrom this Builder.channel(String name, GrpcChannelDescriptor descriptor) Add or replace the specifiedGrpcChannelDescriptor.
-
Method Details
-
channel
Add or replace the specifiedGrpcChannelDescriptor.- Parameters:
name- the name of the configurationdescriptor- theGrpcChannelDescriptorto be added- Returns:
- this Builder instance
-
build
Create a new instance ofGrpcChannelsProviderfrom this Builder.- Specified by:
buildin interfaceBuilder<GrpcChannelsProvider.Builder,GrpcChannelsProvider> - Returns:
- a new instance of
GrpcChannelsProvider
-