Class FutureTasks


  • public class FutureTasks
    extends java.lang.Object
    Consists of utility methods that work with FutureTask.
    Since:
    3.13.0
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FutureTasks()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <V> java.util.concurrent.FutureTask<V> run​(java.util.concurrent.Callable<V> callable)
      Creates a FutureTask and runs the given Callable.
      • Methods inherited from class java.lang.Object

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

      • FutureTasks

        private FutureTasks()
    • Method Detail

      • run

        public static <V> java.util.concurrent.FutureTask<V> run​(java.util.concurrent.Callable<V> callable)
        Creates a FutureTask and runs the given Callable.
        Type Parameters:
        V - The result type returned by this FutureTask's get methods.
        Parameters:
        callable - the Callable task.
        Returns:
        a new FutureTask.