Class SimpleFuture<T>

  • Type Parameters:
    T - The result type returned by this Future's get method.

    @Deprecated
    public class SimpleFuture<T>
    extends java.lang.Object
    Deprecated.
    A Future represents the result of an asynchronous computation.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleFuture​(java.util.concurrent.Callable<T> callable)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean cancel​(boolean mayInterruptIfRunning)
      Deprecated.
       
      protected void done()
      Deprecated.
       
      T get()
      Deprecated.
       
      T get​(long timeout, java.util.concurrent.TimeUnit unit)
      Deprecated.
       
      boolean isCancelled()
      Deprecated.
       
      void run()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • SimpleFuture

        public SimpleFuture​(java.util.concurrent.Callable<T> callable)
        Deprecated.
    • Method Detail

      • isCancelled

        public boolean isCancelled()
        Deprecated.
      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Deprecated.
      • get

        public T get()
              throws java.lang.InterruptedException
        Deprecated.
        Throws:
        java.lang.InterruptedException
      • get

        public T get​(long timeout,
                     java.util.concurrent.TimeUnit unit)
              throws java.lang.InterruptedException
        Deprecated.
        Throws:
        java.lang.InterruptedException
      • run

        public void run()
        Deprecated.
      • done

        protected void done()
        Deprecated.