Package io.grpc.stub
Class ClientCalls.GrpcFuture<RespT>
- java.lang.Object
-
- com.google.common.util.concurrent.internal.InternalFutureFailureAccess
-
- com.google.common.util.concurrent.AbstractFuture<RespT>
-
- io.grpc.stub.ClientCalls.GrpcFuture<RespT>
-
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<RespT>
,java.util.concurrent.Future<RespT>
- Enclosing class:
- ClientCalls
private static final class ClientCalls.GrpcFuture<RespT> extends com.google.common.util.concurrent.AbstractFuture<RespT>
-
-
Field Summary
Fields Modifier and Type Field Description private ClientCall<?,RespT>
call
-
Constructor Summary
Constructors Constructor Description GrpcFuture(ClientCall<?,RespT> call)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
interruptTask()
protected java.lang.String
pendingToString()
protected boolean
set(RespT resp)
protected boolean
setException(java.lang.Throwable throwable)
-
-
-
Field Detail
-
call
private final ClientCall<?,RespT> call
-
-
Constructor Detail
-
GrpcFuture
GrpcFuture(ClientCall<?,RespT> call)
-
-
Method Detail
-
interruptTask
protected void interruptTask()
- Overrides:
interruptTask
in classcom.google.common.util.concurrent.AbstractFuture<RespT>
-
set
protected boolean set(@Nullable RespT resp)
- Overrides:
set
in classcom.google.common.util.concurrent.AbstractFuture<RespT>
-
setException
protected boolean setException(java.lang.Throwable throwable)
- Overrides:
setException
in classcom.google.common.util.concurrent.AbstractFuture<RespT>
-
pendingToString
protected java.lang.String pendingToString()
- Overrides:
pendingToString
in classcom.google.common.util.concurrent.AbstractFuture<RespT>
-
-