protected class AbstractRetryingOperation.GrpcFuture<RespT>
extends com.google.common.util.concurrent.AbstractFuture<RespT>
Modifier | Constructor and Description |
---|---|
protected |
GrpcFuture() |
Modifier and Type | Method and Description |
---|---|
protected void |
interruptTask()
This gets called from
Future.cancel(boolean) for cancel(true). |
boolean |
set(RespT resp) |
boolean |
setException(Throwable throwable) |
protected void interruptTask()
Future.cancel(boolean)
for cancel(true). If a user explicitly
cancels the Future, that should trigger a cancellation of the RPC.interruptTask
in class com.google.common.util.concurrent.AbstractFuture<RespT>
public boolean set(@Nullable RespT resp)
set
in class com.google.common.util.concurrent.AbstractFuture<RespT>