mirror of https://github.com/grpc/grpc-java.git
Make setOnReadyThreshold() a noop method instead of abstract. (#11044)
Make setOnReadyThreshold() a noop method instead of abstract
This commit is contained in:
parent
2c5f0c22cd
commit
37263b774d
|
@ -16,6 +16,8 @@
|
|||
|
||||
package io.grpc.stub;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkArgument;
|
||||
|
||||
import io.grpc.ExperimentalApi;
|
||||
|
||||
/**
|
||||
|
@ -75,7 +77,9 @@ public abstract class ServerCallStreamObserver<RespT> extends CallStreamObserver
|
|||
* positive integer.
|
||||
*/
|
||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/11021")
|
||||
public abstract void setOnReadyThreshold(int numBytes);
|
||||
public void setOnReadyThreshold(int numBytes) {
|
||||
checkArgument(numBytes > 0, "numBytes must be positive: %s", numBytes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the compression algorithm to use for the call. May only be called before sending any
|
||||
|
|
Loading…
Reference in New Issue