mirror of https://github.com/grpc/grpc-java.git
Adding default implementation of onReady in Call and ServerCall
This commit is contained in:
parent
1cf4cc81e8
commit
1fa11cea1f
|
|
@ -152,6 +152,10 @@ public abstract class Call<RequestT, ResponseT> {
|
|||
* without requiring excessive buffering internally. This event is
|
||||
* just a suggestion and the application is free to ignore it, however doing so may
|
||||
* result in excessive buffering within the call.
|
||||
*
|
||||
* <p>This implementation always returns {@code true}.
|
||||
*/
|
||||
public abstract boolean isReady();
|
||||
public boolean isReady() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -137,8 +137,12 @@ public abstract class ServerCall<ResponseT> {
|
|||
* without requiring excessive buffering internally. This event is
|
||||
* just a suggestion and the application is free to ignore it, however doing so may
|
||||
* result in excessive buffering within the call.
|
||||
*
|
||||
* <p>This implementation always returns {@code true}.
|
||||
*/
|
||||
public abstract boolean isReady();
|
||||
public boolean isReady() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the call with the provided status. No further sending or receiving will occur. If {@code
|
||||
|
|
|
|||
Loading…
Reference in New Issue