java.lang.Object
io.helidon.grpc.client.GrpcChannelDescriptor
GrpcChannelDescriptor contains the configuration for a
Channel.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder builds a GrpcChannelDescriptor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create and return a newGrpcChannelDescriptor.Builder.host()Get the host name to connect.booleanChecks if this is a descriptor for building a in processChannel.Get the default load balancer policy to use.Optional<io.grpc.NameResolver.Factory>Deprecated.intport()Get the port that will be used to connect to the server.target()Get the optional target string to use to resolve channel addresses.Get theGrpcTlsDescriptor.
-
Method Details
-
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
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
-
target
Get the optional target string to use to resolve channel addresses.- Returns:
- the optional target string to use to resolve channel addresses
-
loadBalancerPolicy
Get the default load balancer policy to use.- Returns:
- the optional default load balancer policy to use
-
nameResolverFactory
Deprecated.Get theNameResolver.Factoryto use.This method is deprecated due to the deprecation of the
ManagedChannelBuilder.nameResolverFactory(io.grpc.NameResolver.Factory)method in the gRPC Java API.- Returns:
- the optional
NameResolver.Factoryto use
-
tlsDescriptor
Get theGrpcTlsDescriptor. If this method returns null or iftlsDescriptor.isEnabled()is false, then no TLS will be used (and none of the other configuration values fromtlsDescriptorwill be used).If the
GrpcTlsDescriptorhas been set but the value ofGrpcTlsDescriptor.isEnabled()returnsfalsethen an emptyOptionalwill be returned.- Returns:
- the optional
GrpcTlsDescriptor
-