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)
| 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 |