Class GrpcChannelDescriptor


  • public class GrpcChannelDescriptor
    extends Object
    GrpcChannelDescriptor contains the configuration for a Channel.
    • Method Detail

      • isInProcessChannel

        public boolean isInProcessChannel()
        Checks if this is a descriptor for building a in process Channel.
        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
      • target

        public Optional<String> target()
        Get the optional target string to use to resolve channel addresses.
        Returns:
        the optional target string to use to resolve channel addresses
      • loadBalancerPolicy

        public Optional<String> loadBalancerPolicy()
        Get the default load balancer policy to use.
        Returns:
        the optional default load balancer policy to use
      • nameResolverFactory

        public Optional<io.grpc.NameResolver.Factory> nameResolverFactory()
        Get the NameResolver.Factory to use.
        Returns:
        the optional NameResolver.Factory to use