File tree 1 file changed +8
-0
lines changed
core/src/main/java/io/grpc
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,10 @@ public void onClose(Status status, Metadata trailers) {}
141
141
* {@link #sendMessage}) without requiring excessive buffering internally. This event is
142
142
* just a suggestion and the application is free to ignore it, however doing so may
143
143
* result in excessive buffering within the ClientCall.
144
+ *
145
+ * <p>If the type of a call is either {@link MethodDescriptor.MethodType#UNARY} or
146
+ * {@link MethodDescriptor.MethodType#SERVER_STREAMING}, this callback may not be fired. Calls
147
+ * that send exactly one message should not await this callback.
144
148
*/
145
149
public void onReady () {}
146
150
}
@@ -223,6 +227,10 @@ public void onReady() {}
223
227
*
224
228
* <p>This abstract class's implementation always returns {@code true}. Implementations generally
225
229
* override the method.
230
+ *
231
+ * <p>If the type of the call is either {@link MethodDescriptor.MethodType#UNARY} or
232
+ * {@link MethodDescriptor.MethodType#SERVER_STREAMING}, this method may persistently return
233
+ * false. Calls that send exactly one message should not check this method.
226
234
*/
227
235
public boolean isReady () {
228
236
return true ;
You can’t perform that action at this time.
0 commit comments