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
      • tlsDescriptor

        public GrpcTlsDescriptor tlsDescriptor()
        Get the GrpcTlsDescriptor. If this method returns null or if tlsDescriptor.isEnabled() is false, then no TLS will be used (and none of the other configuration values from tlsDescriptor will be used).
        Returns:
        the GrpcTlsDescriptor instance (or null if no configuration was specified)