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