default throw ServerCallStreamObserver.setOnCloseHandler (#8564)

This commit is contained in:
yifeizhuang 2021-09-28 13:31:40 -07:00 committed by GitHub
parent 0287d83182
commit fbded2a05f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -168,5 +168,7 @@ public abstract class ServerCallStreamObserver<RespT> extends CallStreamObserver
* @param onCloseHandler to execute when the call has been closed cleanly.
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/8467")
public abstract void setOnCloseHandler(Runnable onCloseHandler);
public void setOnCloseHandler(Runnable onCloseHandler) {
throw new UnsupportedOperationException();
}
}