Package io.helidon.grpc.client
Class GrpcChannelDescriptor
- java.lang.Object
-
- io.helidon.grpc.client.GrpcChannelDescriptor
-
public class GrpcChannelDescriptor extends Object
GrpcChannelDescriptor contains the configuration for aChannel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrpcChannelDescriptor.BuilderBuilder builds a GrpcChannelDescriptor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GrpcChannelDescriptor.Builderbuilder()Create and return a newGrpcChannelDescriptor.Builder.Stringhost()Get the host name to connect.booleanisInProcessChannel()Checks if this is a descriptor for building a in processChannel.intport()Get the port that will be used to connect to the server.GrpcSslDescriptorsslDescriptor()Get theGrpcSslDescriptor.
-
-
-
Method Detail
-
builder
public static GrpcChannelDescriptor.Builder builder()
Create and return a newGrpcChannelDescriptor.Builder.- Returns:
- a new
GrpcChannelDescriptor.Builder
-
isInProcessChannel
public boolean isInProcessChannel()
Checks if this is a descriptor for building a in processChannel.- Returns:
- true if this is a descriptor for building a in process
Channel
-
host
public String host()
Get the host name to connect.- Returns:
- the host name to connect
-
port
public int port()
Get the port that will be used to connect to the server.- Returns:
- the port that will be used to connect to the server
-
sslDescriptor
public GrpcSslDescriptor sslDescriptor()
Get theGrpcSslDescriptor. If this method returns null or ifsslDescriptor.isEnabled()is false, then no TLS will be used (and none of the other configuration values fromsslDescriptorwill be used).- Returns:
- the
GrpcSslDescriptorinstance (ornullif no configuration was specified)
-
-