Class BatchEntry<ElementT,ElementResultT> (2.16.0)

public abstract class BatchEntry<ElementT,ElementResultT>

This class contains the element and its corresponding unresolved future, which would be resolved when batch is successful or failed.

Inheritance

java.lang.Object > BatchEntry<ElementT,ElementResultT>

Type Parameters

NameDescription
ElementT
ElementResultT

Static Methods

<ElementT,ElementResultT>create(ElementT element, SettableApiFuture<ElementResultT> resultFuture)

public static BatchEntry<ElementT,ElementResultT> <ElementT,ElementResultT>create(ElementT element, SettableApiFuture<ElementResultT> resultFuture)

Returns a new BatchEntry

Parameters
NameDescription
elementElementT
resultFuturecom.google.api.core.SettableApiFuture<ElementResultT>
Returns
TypeDescription
BatchEntry<ElementT,ElementResultT>

Constructors

BatchEntry()

public BatchEntry()

Methods

getElement()

public abstract ElementT getElement()
Returns
TypeDescription
ElementT

getResultFuture()

public abstract SettableApiFuture<ElementResultT> getResultFuture()
Returns
TypeDescription
com.google.api.core.SettableApiFuture<ElementResultT>