Adding default implementation of onReady in Call and ServerCall

This commit is contained in:
nmittler 2015-05-07 10:38:28 -07:00
parent 1cf4cc81e8
commit 1fa11cea1f
2 changed files with 10 additions and 2 deletions

View File

@ -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;
}
}

View File

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