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

Method newChannelBuilder

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

Creates a channel builder with a target string and credentials. The target can be either a valid NameResolver-compliant URI, or an authority string. A NameResolver-compliant URI is an absolute hierarchical URI as defined by java.net.URI. Example URIs: {@code "d

(
      String target, ChannelCredentials creds)

Source from the content-addressed store, hash-verified

104 * </ul>
105 */
106 public static ManagedChannelBuilder<?> newChannelBuilder(
107 String target, ChannelCredentials creds) {
108 return ManagedChannelRegistry.getDefaultRegistry().newChannelBuilder(target, creds);
109 }
110
111 /**
112 * Creates a channel builder from a host, port, and credentials. The host and port are combined to

Calls 1

getDefaultRegistryMethod · 0.95