Class NonCancellableFuture<ResponseT>

  • Type Parameters:
    ResponseT - future response type
    All Implemented Interfaces:
    com.google.api.core.ApiFuture<ResponseT>, java.util.concurrent.Future<ResponseT>

    @InternalApi
    public final class NonCancellableFuture<ResponseT>
    extends com.google.api.core.AbstractApiFuture<ResponseT>
    A future which cannot be cancelled from the external package.

    For internal use, public for technical reasons.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean cancel​(boolean mayInterruptIfRunning)  
      • Methods inherited from class com.google.api.core.AbstractApiFuture

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

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

      • NonCancellableFuture

        public NonCancellableFuture()
    • Method Detail

      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Specified by:
        cancel in interface java.util.concurrent.Future<ResponseT>
        Overrides:
        cancel in class com.google.api.core.AbstractApiFuture<ResponseT>