Class TimeStatisticImpl

    • Field Detail

      • count

        private long count
      • maxTime

        private long maxTime
      • minTime

        private long minTime
      • totTime

        private long totTime
      • initCount

        private final long initCount
      • initMaxTime

        private final long initMaxTime
      • initMinTime

        private final long initMinTime
      • initTotTime

        private final long initTotTime
    • Constructor Detail

      • TimeStatisticImpl

        public TimeStatisticImpl​(long counter,
                                 long maximumTime,
                                 long minimumTime,
                                 long totalTime,
                                 java.lang.String name,
                                 java.lang.String unit,
                                 java.lang.String desc,
                                 long startTime,
                                 long sampleTime)
    • Method Detail

      • incrementCount

        public void incrementCount​(long current)
      • getCount

        public long getCount()
        Returns the number of times an operation was invoked
        Specified by:
        getCount in interface TimeStatistic
      • getMaxTime

        public long getMaxTime()
        Returns the maximum amount of time that it took for one invocation of an operation, since measurement started.
        Specified by:
        getMaxTime in interface TimeStatistic
      • getMinTime

        public long getMinTime()
        Returns the minimum amount of time that it took for one invocation of an operation, since measurement started.
        Specified by:
        getMinTime in interface TimeStatistic
      • getTotalTime

        public long getTotalTime()
        Returns the amount of time that it took for all invocations, since measurement started.
        Specified by:
        getTotalTime in interface TimeStatistic
      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method m,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable