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

Method requestConnection

api/src/main/java/io/grpc/LoadBalancer.java:444–444  ·  view source on GitHub ↗

The channel asks the LoadBalancer to establish connections now (if applicable) so that the upcoming RPC may then just pick a ready connection without waiting for connections. This is triggered by ManagedChannel#getState ManagedChannel.getState(true). If LoadBalancer doesn't override it,

()

Source from the content-addressed store, hash-verified

442 * @since 1.22.0
443 */
444 public void requestConnection() {}
445
446 /**
447 * The main balancing logic. It <strong>must be thread-safe</strong>. Typically it should only

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected