Class GrpcChannelDescriptor.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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​(GrpcTlsDescriptor tlsDescriptor)
        Set the GrpcTlsDescriptor. If tlsDescriptor is null or if the tlsDescriptor.isEnabled() is false, then no TLS will be used.
        Parameters:
        tlsDescriptor - the GrpcSslDescriptor
        Returns:
        this instance for fluent API