Package com.google.api.gax.rpc
Class BatchedFuture<ResponseT>
- java.lang.Object
-
- com.google.api.core.AbstractApiFuture<ResponseT>
-
- com.google.api.gax.rpc.BatchedFuture<ResponseT>
-
@InternalApi public class BatchedFuture<ResponseT> extends AbstractApiFuture<ResponseT>
An ApiFuture to be used with batching.This is public only for technical reasons, for advanced usage.
-
-
Constructor Summary
Constructors Constructor Description BatchedFuture()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> BatchedFuture<T>create()Get a new instance.booleanset(ResponseT value)booleansetException(Throwable throwable)-
Methods inherited from class com.google.api.core.AbstractApiFuture
addListener, cancel, get, get, interruptTask, isCancelled, isDone
-
-
-
-
Method Detail
-
create
public static <T> BatchedFuture<T> create()
Get a new instance.
-
set
public boolean set(ResponseT value)
- Overrides:
setin classAbstractApiFuture<ResponseT>
-
setException
public boolean setException(Throwable throwable)
- Overrides:
setExceptionin classAbstractApiFuture<ResponseT>
-
-