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>
-
- All Implemented Interfaces:
com.google.api.core.ApiFuture<ResponseT>,java.util.concurrent.Future<ResponseT>
@InternalApi public class BatchedFuture<ResponseT> extends com.google.api.core.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(java.lang.Throwable throwable)
-
-
-
Method Detail
-
create
public static <T> BatchedFuture<T> create()
Get a new instance.
-
set
public boolean set(ResponseT value)
- Overrides:
setin classcom.google.api.core.AbstractApiFuture<ResponseT>
-
setException
public boolean setException(java.lang.Throwable throwable)
- Overrides:
setExceptionin classcom.google.api.core.AbstractApiFuture<ResponseT>
-
-