Class TransientActivityRunStatistics


  • public class TransientActivityRunStatistics
    extends Object
    Maintains selected statistical information related to processing items in a current activity run. It is like a simplified version of ActivityItemProcessingStatistics that ignore previous activity runs and different types of outcome (distinguishing only errors and non-errors). Must be thread safe.
    • Field Detail

      • startTimeMillis

        protected volatile long startTimeMillis
        The wall clock time when activity run started.
    • Constructor Detail

      • TransientActivityRunStatistics

        public TransientActivityRunStatistics()
    • Method Detail

      • update

        public void update​(boolean isError,
                           double duration)
      • getAverageTime

        public final Double getAverageTime()
      • getProcessingTime

        public final double getProcessingTime()
      • getStartTimeMillis

        public long getStartTimeMillis()
      • getErrors

        public int getErrors()
      • getItemsProcessed

        public int getItemsProcessed()