Class BatchEntry<ElementT,ElementResultT> (2.50.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

Name Description
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
Name Description
element ElementT
resultFuture SettableApiFuture<ElementResultT>
Returns
Type Description
BatchEntry<ElementT,ElementResultT>

Constructors

BatchEntry()

public BatchEntry()

Methods

getElement()

public abstract ElementT getElement()
Returns
Type Description
ElementT

getResultFuture()

public abstract SettableApiFuture<ElementResultT> getResultFuture()
Returns
Type Description
SettableApiFuture<ElementResultT>