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 Summary
Constructors Constructor Description Builder()
-
Method Summary
All 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.Builderport(int port)Set the port that will be used to connect to the server.GrpcChannelDescriptor.BuildersslDescriptor(GrpcSslDescriptor sslDescriptor)Set the GrpcSslDescriptor.
-
-
-
Method Detail
-
inProcess
public GrpcChannelDescriptor.Builder inProcess()
Set the host name to connect.- Returns:
- this instance for fluent API
-
host
public GrpcChannelDescriptor.Builder host(String host)
Set the host name to connect.- Parameters:
host- set the host name- Returns:
- this instance for fluent API
-
port
public 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
-
sslDescriptor
public GrpcChannelDescriptor.Builder sslDescriptor(GrpcSslDescriptor sslDescriptor)
Set the GrpcSslDescriptor. IfsslDescriptoris null or if thesslDescriptor.isEnabled()is false, then no TLS will be used.- Parameters:
sslDescriptor- the GrpcSslDescriptor- Returns:
- this instance for fluent API
-
build
public GrpcChannelDescriptor build()
Build and return a new GrpcChannelDescriptor.- Specified by:
buildin interfaceBuilder<GrpcChannelDescriptor>- Returns:
- a new GrpcChannelDescriptor
-
-