Class OrderedExecutor.TimedCallable<T>

  • All Implemented Interfaces:
    java.util.concurrent.Callable<T>
    Enclosing class:
    OrderedExecutor

    protected class OrderedExecutor.TimedCallable<T>
    extends java.lang.Object
    implements java.util.concurrent.Callable<T>
    Decorator class for a callable that measure the execution time.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.concurrent.Callable<T> callable  
      (package private) long initNanos  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T call()  
      • Methods inherited from class java.lang.Object

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

      • callable

        final java.util.concurrent.Callable<T> callable
      • initNanos

        final long initNanos
    • Constructor Detail

      • TimedCallable

        TimedCallable​(java.util.concurrent.Callable<T> callable)
    • Method Detail

      • call

        public T call()
               throws java.lang.Exception
        Specified by:
        call in interface java.util.concurrent.Callable<T>
        Throws:
        java.lang.Exception