MCPcopy Create free account
hub / github.com/grpc/grpc-java / newChannelBuilderForAddress

Method newChannelBuilderForAddress

api/src/main/java/io/grpc/Grpc.java:116–119  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

buildMethod · 0.95
getStubMethod · 0.95
createChannelMethod · 0.95
setupMethod · 0.95
createChannelMethod · 0.95
runTestMethod · 0.95
createChannelBuilderMethod · 0.95
echoTestMethod · 0.95
forwardEchoTestMethod · 0.95
AuthClientMethod · 0.95
mainMethod · 0.95

Calls 2

newChannelBuilderMethod · 0.95

Tested by 15

buildMethod · 0.76
getStubMethod · 0.76
createChannelMethod · 0.76
setupMethod · 0.76
createChannelMethod · 0.76
runTestMethod · 0.76
createChannelBuilderMethod · 0.76
echoTestMethod · 0.76
forwardEchoTestMethod · 0.76
basicMutualTlsTestMethod · 0.76