Package com.google.api.gax.batching
Class BatchEntry<ElementT,ElementResultT>
java.lang.Object
com.google.api.gax.batching.BatchEntry<ElementT,ElementResultT>
- Type Parameters:
ElementT
- The type of each individual element to be batched.ElementResultT
- The type of the result for each individual element.
@InternalApi("For google-cloud-java client use only.")
public abstract class BatchEntry<ElementT,ElementResultT>
extends Object
This class contains the element and its corresponding unresolved future, which would be resolved
when batch is
successful
or failed
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <ElementT,
ElementResultT>
BatchEntry<ElementT,ElementResultT> create
(ElementT element, SettableApiFuture<ElementResultT> resultFuture) Returns a new BatchEntryabstract ElementT
abstract SettableApiFuture<ElementResultT>
-
Constructor Details
-
BatchEntry
public BatchEntry()
-
-
Method Details
-
create
public static <ElementT,ElementResultT> BatchEntry<ElementT,ElementResultT> create(@Nullable ElementT element, SettableApiFuture<ElementResultT> resultFuture) Returns a new BatchEntry -
getElement
-
getResultFuture
-