Class ExecutionStatisticsImpl

    • Field Detail

      • lastStartTime

        private final long lastStartTime
      • timeWindowStatistics

        private final java.util.Map<java.lang.Long,​TimeWindowStatistics> timeWindowStatistics
    • Constructor Detail

      • ExecutionStatisticsImpl

        private ExecutionStatisticsImpl​(long lastStartTime,
                                        java.util.Map<java.lang.Long,​TimeWindowStatistics> timeWindowStatistics)
    • Method Detail

      • getLastStartTime

        public java.util.Date getLastStartTime()
        Description copied from interface: ExecutionStatistics
        Return time when target was executed last time. The time is measured before the target was executed.
        Specified by:
        getLastStartTime in interface ExecutionStatistics
        Returns:
        Time of last execution.
      • snapshot

        public ExecutionStatistics snapshot()
        Description copied from interface: ExecutionStatistics
        Get the immutable consistent snapshot of the monitoring statistics. Working with snapshots might have negative performance impact as snapshot must be created but ensures consistency of data over time. However, the usage of snapshot is encouraged to avoid working with inconsistent data. Not all statistics must be updated in the same time on mutable version of statistics.
        Specified by:
        snapshot in interface ExecutionStatistics
        Returns:
        Snapshot of execution statistics.