mirror of https://github.com/grpc/grpc-java.git
Delete the old ClientCall.cancel().
It's deprecated since 0.14.0.
This commit is contained in:
parent
def237d960
commit
11a314e31a
|
|
@ -159,17 +159,6 @@ public abstract class ClientCall<ReqT, RespT> {
|
||||||
*/
|
*/
|
||||||
public abstract void request(int numMessages);
|
public abstract void request(int numMessages);
|
||||||
|
|
||||||
/**
|
|
||||||
* Equivalent as {@link #cancel(String, Throwable)} without passing any useful information.
|
|
||||||
*
|
|
||||||
* @deprecated Use or override {@link #cancel(String, Throwable)} instead. See
|
|
||||||
* https://github.com/grpc/grpc-java/issues/1221
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public void cancel() {
|
|
||||||
cancel("Cancelled by ClientCall.cancel()", null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prevent any further processing for this {@code ClientCall}. No further messages may be sent or
|
* Prevent any further processing for this {@code ClientCall}. No further messages may be sent or
|
||||||
* will be received. The server is informed of cancellations, but may not stop processing the
|
* will be received. The server is informed of cancellations, but may not stop processing the
|
||||||
|
|
|
||||||
|
|
@ -52,12 +52,6 @@ public abstract class ForwardingClientCall<ReqT, RespT> extends ClientCall<ReqT,
|
||||||
delegate().request(numMessages);
|
delegate().request(numMessages);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
@Override
|
|
||||||
public void cancel() {
|
|
||||||
delegate().cancel();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void cancel(@Nullable String message, @Nullable Throwable cause) {
|
public void cancel(@Nullable String message, @Nullable Throwable cause) {
|
||||||
delegate().cancel(message, cause);
|
delegate().cancel(message, cause);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue