Package io.helidon.grpc.client
Class GrpcChannelDescriptor.Builder
- java.lang.Object
- 
- io.helidon.grpc.client.GrpcChannelDescriptor.Builder
 
- 
- All Implemented Interfaces:
- Builder<GrpcChannelDescriptor>,- Supplier<GrpcChannelDescriptor>
 - Enclosing class:
- GrpcChannelDescriptor
 
 public static class GrpcChannelDescriptor.Builder extends Object implements Builder<GrpcChannelDescriptor> Builder builds a GrpcChannelDescriptor.
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description GrpcChannelDescriptorbuild()Build and return a new GrpcChannelDescriptor.GrpcChannelDescriptor.Builderhost(String host)Set the host name to connect.GrpcChannelDescriptor.BuilderinProcess()Set the host name to connect.GrpcChannelDescriptor.BuilderloadBalancerPolicy(String policy)Set the default load balancer policy name.GrpcChannelDescriptor.BuildernameResolverFactory(io.grpc.NameResolver.Factory factory)Set theNameResolver.Factoryto use.GrpcChannelDescriptor.Builderport(int port)Set the port that will be used to connect to the server.GrpcChannelDescriptor.BuildersslDescriptor(GrpcTlsDescriptor tlsDescriptor)Set the GrpcTlsDescriptor.GrpcChannelDescriptor.Buildertarget(String target)Set the target string, which can be either a validNameResolvercompliant URI, or an authority string.
 
- 
- 
- 
Method Detail- 
inProcesspublic GrpcChannelDescriptor.Builder inProcess() Set the host name to connect.- Returns:
- this instance for fluent API
 
 - 
targetpublic GrpcChannelDescriptor.Builder target(String target) Set the target string, which can be either a validNameResolvercompliant URI, or an authority string.- Parameters:
- target- the target string
- Returns:
- this instance for fluent API
- See Also:
- ManagedChannelBuilder.forTarget(String)
 
 - 
hostpublic GrpcChannelDescriptor.Builder host(String host) Set the host name to connect.- Parameters:
- host- set the host name
- Returns:
- this instance for fluent API
 
 - 
portpublic GrpcChannelDescriptor.Builder port(int port) Set the port that will be used to connect to the server.- Parameters:
- port- the port that will be used to connect to the server
- Returns:
- this instance for fluent API
 
 - 
sslDescriptorpublic GrpcChannelDescriptor.Builder sslDescriptor(GrpcTlsDescriptor tlsDescriptor) Set the GrpcTlsDescriptor. IftlsDescriptoris null or if thetlsDescriptor.isEnabled()is false, then no TLS will be used.- Parameters:
- tlsDescriptor- the GrpcSslDescriptor
- Returns:
- this instance for fluent API
 
 - 
loadBalancerPolicypublic GrpcChannelDescriptor.Builder loadBalancerPolicy(String policy) Set the default load balancer policy name.- Parameters:
- policy- the load balancer policy name
- Returns:
- this instance for fluent API
- See Also:
- ManagedChannelBuilder.defaultLoadBalancingPolicy(String)
 
 - 
nameResolverFactorypublic GrpcChannelDescriptor.Builder nameResolverFactory(io.grpc.NameResolver.Factory factory) Set theNameResolver.Factoryto use.- Parameters:
- factory- the- NameResolver.Factoryto use
- Returns:
- this instance for fluent API
- See Also:
- ManagedChannelBuilder.nameResolverFactory(io.grpc.NameResolver.Factory)
 
 - 
buildpublic GrpcChannelDescriptor build() Build and return a new GrpcChannelDescriptor.- Specified by:
- buildin interface- Builder<GrpcChannelDescriptor>
- Returns:
- a new GrpcChannelDescriptor
 
 
- 
 
-