From 1fa11cea1f758ed3c8b25ae6ac680fac2f4ae880 Mon Sep 17 00:00:00 2001 From: nmittler Date: Thu, 7 May 2015 10:38:28 -0700 Subject: [PATCH] Adding default implementation of onReady in Call and ServerCall --- core/src/main/java/io/grpc/Call.java | 6 +++++- core/src/main/java/io/grpc/ServerCall.java | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/io/grpc/Call.java b/core/src/main/java/io/grpc/Call.java index dec2d8438d..29ff35b1bc 100644 --- a/core/src/main/java/io/grpc/Call.java +++ b/core/src/main/java/io/grpc/Call.java @@ -152,6 +152,10 @@ public abstract class Call { * 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. + * + *

This implementation always returns {@code true}. */ - public abstract boolean isReady(); + public boolean isReady() { + return true; + } } diff --git a/core/src/main/java/io/grpc/ServerCall.java b/core/src/main/java/io/grpc/ServerCall.java index 39f81fa810..c84549d537 100644 --- a/core/src/main/java/io/grpc/ServerCall.java +++ b/core/src/main/java/io/grpc/ServerCall.java @@ -137,8 +137,12 @@ public abstract class ServerCall { * 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. + * + *

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