Creates a channel builder from a host, port, and credentials. The host and port are combined to form an authority string and then passed to #newChannelBuilder(String, ChannelCredentials). IPv6 addresses are properly surrounded by square brackets ("[]").
(
String host, int port, ChannelCredentials creds)
| 114 | * ChannelCredentials)}. IPv6 addresses are properly surrounded by square brackets ("[]"). |
| 115 | */ |
| 116 | public static ManagedChannelBuilder<?> newChannelBuilderForAddress( |
| 117 | String host, int port, ChannelCredentials creds) { |
| 118 | return newChannelBuilder(authorityFromHostAndPort(host, port), creds); |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Combine a host and port into an authority string. |