Class 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.Object
    This class contains the element and its corresponding unresolved future, which would be resolved when batch is successful or failed.
    • Constructor Detail

      • BatchEntry

        public BatchEntry()
    • 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()