Class BatchedFuture<ResponseT>

  • All Implemented Interfaces:
    com.google.api.core.ApiFuture<ResponseT>, java.util.concurrent.Future<ResponseT>

    @InternalApi
    public class BatchedFuture<ResponseT>
    extends com.google.api.core.AbstractApiFuture<ResponseT>
    An ApiFuture to be used with batching.

    This is public only for technical reasons, for advanced usage.

    • Constructor Summary

      Constructors 
      Constructor Description
      BatchedFuture()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> BatchedFuture<T> create()
      Get a new instance.
      boolean set​(ResponseT value)  
      boolean setException​(java.lang.Throwable throwable)  
      • Methods inherited from class com.google.api.core.AbstractApiFuture

        addListener, cancel, get, get, interruptTask, isCancelled, isDone
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatchedFuture

        public BatchedFuture()
    • Method Detail

      • create

        public static <T> BatchedFuture<T> create()
        Get a new instance.
      • set

        public boolean set​(ResponseT value)
        Overrides:
        set in class com.google.api.core.AbstractApiFuture<ResponseT>
      • setException

        public boolean setException​(java.lang.Throwable throwable)
        Overrides:
        setException in class com.google.api.core.AbstractApiFuture<ResponseT>