java.lang.Object
io.helidon.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 ofGrpcChannelsProvider
from 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
- theGrpcChannelDescriptor
to be added- Returns:
- this Builder instance
-
build
Create a new instance ofGrpcChannelsProvider
from this Builder.- Specified by:
build
in interfaceBuilder<GrpcChannelsProvider.Builder,
GrpcChannelsProvider> - Returns:
- a new instance of
GrpcChannelsProvider
-