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

Method withWaitForReady

api/src/main/java/io/grpc/CallOptions.java:201–205  ·  view source on GitHub ↗

Enables 'wait for ready' for the call. Wait-for-ready queues the RPC until a connection is available. This may dramatically increase the latency of the RPC, but avoids failing "unnecessarily." The default queues the RPC un

()

Source from the content-addressed store, hash-verified

199 * fails RPCs without sending them if unable to connect.
200 */
201 public CallOptions withWaitForReady() {
202 Builder builder = toBuilder(this);
203 builder.waitForReady = Boolean.TRUE;
204 return builder.build();
205 }
206
207 /**
208 * Disables 'wait for ready' feature for the call.

Calls 2

toBuilderMethod · 0.95
buildMethod · 0.95