Skip to content

Commit 68b4f42

Browse files
committed
Changes
1 parent 0b2d440 commit 68b4f42

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

stub/src/main/java/io/grpc/stub/ClientCalls.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ public static <ReqT, RespT> void asyncServerStreamingCall(
100100
* {@code beforeStart()} will be called.
101101
*
102102
* @return request stream observer. It will extend {@link ClientCallStreamObserver}
103+
* onError called on the request stream observer will result in stream cancellation. The response
104+
* {@link StreamObserver} will be immediately notified of the cancellation with a
105+
* {@link io.grpc.StatusRuntimeException}. The server's request stream observer will receive an
106+
* onError callbackk from the gRPC server framework with a {@link io.grpc.StatusRuntimeException}
107+
* for the cancellation. The actual exception passed by the client to onError is never actually
108+
* transmitted to the server.
103109
*/
104110
public static <ReqT, RespT> StreamObserver<ReqT> asyncClientStreamingCall(
105111
ClientCall<ReqT, RespT> call,
@@ -116,6 +122,12 @@ public static <ReqT, RespT> StreamObserver<ReqT> asyncClientStreamingCall(
116122
* {@code beforeStart()} will be called.
117123
*
118124
* @return request stream observer. It will extend {@link ClientCallStreamObserver}
125+
* onError called on the request stream observer will result in stream cancellation. The response
126+
* {@link StreamObserver} will be immediately notified of the cancellation with a
127+
* {@link io.grpc.StatusRuntimeException}. The server's request stream observer will receive an
128+
* onError callbackk from the gRPC server framework with a {@link io.grpc.StatusRuntimeException}
129+
* for the cancellation. The actual exception passed by the client to onError is never actually
130+
* transmitted to the server.
119131
*/
120132
public static <ReqT, RespT> StreamObserver<ReqT> asyncBidiStreamingCall(
121133
ClientCall<ReqT, RespT> call, StreamObserver<RespT> responseObserver) {

0 commit comments

Comments
 (0)