Class BatchedFuture<ResponseT> (2.9.0)

public class BatchedFuture<ResponseT> extends AbstractApiFuture<ResponseT>

An ApiFuture to be used with batching.

This is public only for technical reasons, for advanced usage.

Inheritance

java.lang.Object > com.google.api.core.AbstractApiFuture > BatchedFuture<ResponseT>
com.google.api.core.AbstractApiFuture.addListener(java.lang.Runnable,java.util.concurrent.Executor)
com.google.api.core.AbstractApiFuture.cancel(boolean)
com.google.api.core.AbstractApiFuture.get()
com.google.api.core.AbstractApiFuture.get(long,java.util.concurrent.TimeUnit)
com.google.api.core.AbstractApiFuture.interruptTask()
com.google.api.core.AbstractApiFuture.isCancelled()
com.google.api.core.AbstractApiFuture.isDone()
com.google.api.core.AbstractApiFuture.set(V)
com.google.api.core.AbstractApiFuture.setException(java.lang.Throwable)

Type Parameter

NameDescription
ResponseT

Constructors

BatchedFuture()

public BatchedFuture()

Methods

<T>create()

public static BatchedFuture<T> <T>create()

Get a new instance.

Returns
TypeDescription
BatchedFuture<T>

set(ResponseT value)

public boolean set(ResponseT value)
Parameter
NameDescription
valueResponseT
Returns
TypeDescription
boolean
Overrides
com.google.api.core.AbstractApiFuture.set(V)

setException(Throwable throwable)

public boolean setException(Throwable throwable)
Parameter
NameDescription
throwableThrowable
Returns
TypeDescription
boolean
Overrides
com.google.api.core.AbstractApiFuture.setException(java.lang.Throwable)