- 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 GrpcChannelsProvider
build()
Create a new instance ofGrpcChannelsProvider
from this Builder.GrpcChannelsProvider.Builder
channel(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
- theGrpcChannelDescriptor
to be added- Returns:
- this Builder instance
-
build
public GrpcChannelsProvider build()
Create a new instance ofGrpcChannelsProvider
from this Builder.- Specified by:
build
in interfaceBuilder<GrpcChannelsProvider>
- Returns:
- a new instance of
GrpcChannelsProvider
-
-