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 java.lang.ObjectThis class contains the element and its corresponding unresolved future, which would be resolved when batch issuccessfulorfailed.
-
-
Constructor Summary
Constructors Constructor Description BatchEntry()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <ElementT,ElementResultT>
BatchEntry<ElementT,ElementResultT>create(ElementT element, com.google.api.core.SettableApiFuture<ElementResultT> resultFuture)Returns a new BatchEntryabstract ElementTgetElement()abstract com.google.api.core.SettableApiFuture<ElementResultT>getResultFuture()
-
-
-
Method Detail
-
create
public static <ElementT,ElementResultT> BatchEntry<ElementT,ElementResultT> create(@Nullable ElementT element, com.google.api.core.SettableApiFuture<ElementResultT> resultFuture)
Returns a new BatchEntry
-
getElement
@Nullable public abstract ElementT getElement()
-
getResultFuture
public abstract com.google.api.core.SettableApiFuture<ElementResultT> getResultFuture()
-
-