Class CancellableFuture<V>

  • All Implemented Interfaces:
    java.util.concurrent.Future<V>

    public class CancellableFuture<V>
    extends AFuture<V>
    • Method Detail

      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
      • isCancelled

        public boolean isCancelled()
      • isDone

        public boolean isDone()
      • get

        public V get()
              throws java.lang.InterruptedException,
                     java.util.concurrent.ExecutionException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • get

        public V get​(long timeout,
                     java.util.concurrent.TimeUnit unit)
              throws java.lang.InterruptedException,
                     java.util.concurrent.ExecutionException,
                     java.util.concurrent.TimeoutException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException