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

Method getState

api/src/main/java/io/grpc/ManagedChannel.java:83–86  ·  view source on GitHub ↗

Gets the current connectivity state. Note the result may soon become outdated. Note that the core library did not provide an implementation of this method until v1.6.1. @param requestConnection if true, the channel will try to make a connection if it is currently IDLE @throws Uns

(boolean requestConnection)

Source from the content-addressed store, hash-verified

81 * @since 1.1.0
82 */
83 @ExperimentalApi("https://github.com/grpc/grpc-java/issues/4359")
84 public ConnectivityState getState(boolean requestConnection) {
85 throw new UnsupportedOperationException("Not implemented");
86 }
87
88 /**
89 * Registers a one-off callback that will be run if the connectivity state of the channel diverges

Calls

no outgoing calls