Class PredictableExecutor.PickyFutureTask<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      PickyFutureTask​(java.lang.Runnable runnable, T value)
      Same as FutureTask(Runnable, Object).
      PickyFutureTask​(java.util.concurrent.Callable<T> callable)
      Same as FutureTask(Callable).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int hint()
      Returns hint for choosing which Thread to run this task on.
      • Methods inherited from class java.util.concurrent.FutureTask

        cancel, done, get, get, isCancelled, isDone, run, runAndReset, set, setException, toString
      • Methods inherited from class java.lang.Object

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

      • PickyFutureTask

        public PickyFutureTask​(java.lang.Runnable runnable,
                               T value)
        Same as FutureTask(Runnable, Object).
        Parameters:
        runnable - work to do
        value - result
      • PickyFutureTask

        public PickyFutureTask​(java.util.concurrent.Callable<T> callable)
        Same as FutureTask(Callable).
        Parameters:
        callable - work to be done