Class TimedComputation


  • public abstract class TimedComputation
    extends java.lang.Object
    This class is the single-thread pendant to asynchronous computations realized with Futures
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T compute​(java.util.concurrent.Callable<T> callable, org.api4.java.algorithm.Timeout timeout, java.lang.String reasonToLogOnTimeout)  
      • Methods inherited from class java.lang.Object

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

      • compute

        public static <T> T compute​(java.util.concurrent.Callable<T> callable,
                                    org.api4.java.algorithm.Timeout timeout,
                                    java.lang.String reasonToLogOnTimeout)
                             throws java.util.concurrent.ExecutionException,
                                    org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException,
                                    java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException
        java.lang.InterruptedException