Class OrderedExecutor.TimedRunnable

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    OrderedExecutor

    protected class OrderedExecutor.TimedRunnable
    extends java.lang.Object
    implements java.lang.Runnable
    Decorator class for a runnable that measure the execution time.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long initNanos  
      (package private) java.lang.Runnable runnable  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimedRunnable​(java.lang.Runnable runnable)  
    • Method Summary

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

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

      • runnable

        final java.lang.Runnable runnable
      • initNanos

        final long initNanos
    • Constructor Detail

      • TimedRunnable

        TimedRunnable​(java.lang.Runnable runnable)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable