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

Method withOnReadyThreshold

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

Specifies how many bytes must be queued before the call is considered not ready to send more messages. @param numBytes The number of bytes that must be queued. Must be a positive integer.

(int numBytes)

Source from the content-addressed store, hash-verified

222 * positive integer.
223 */
224 @ExperimentalApi("https://github.com/grpc/grpc-java/issues/11021")
225 public CallOptions withOnReadyThreshold(int numBytes) {
226 checkArgument(numBytes > 0, "numBytes must be positive: %s", numBytes);
227 Builder builder = toBuilder(this);
228 builder.onReadyThreshold = numBytes;
229 return builder.build();
230 }
231
232 /**
233 * Resets to the default number of bytes that must be queued before the

Calls 2

toBuilderMethod · 0.95
buildMethod · 0.95

Tested by 3

resetOnReadyThresholdMethod · 0.36