Class Task.TaskStat

  • Enclosing class:
    Task<V>

    public static class Task.TaskStat
    extends java.lang.Object
    State of a task.
    • Constructor Summary

      Constructors 
      Constructor Description
      TaskStat()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String dumpStats()  
      void recordTimeInQ()
      Record time when task is inside the queue.
      void recordTimeToComplete()
      Record time taken to complete the task.
      • Methods inherited from class java.lang.Object

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

      • TaskStat

        public TaskStat()
    • Method Detail

      • recordTimeInQ

        public void recordTimeInQ()
        Record time when task is inside the queue.
      • recordTimeToComplete

        public void recordTimeToComplete()
        Record time taken to complete the task.
      • dumpStats

        public java.lang.String dumpStats()
        Returns:
        task state