Class CounterHistoryRecorder

  • All Implemented Interfaces:
    org.javasimon.Callback

    @Deprecated(since="11.4")
    public class CounterHistoryRecorder
    extends org.javasimon.CallbackSkeleton
    Deprecated.
    since 11.4: use dropwizard metrics instead
    Listen to Simon events to store past values of the counters History is kept in memory using CounterHistoryStack
    Author:
    Tiry ([email protected])
    • Field Detail

      • historyLength

        protected int historyLength
        Deprecated.
    • Constructor Detail

      • CounterHistoryRecorder

        public CounterHistoryRecorder​(int size)
        Deprecated.
    • Method Detail

      • getCounterHistoryStack

        protected CounterHistoryStack getCounterHistoryStack​(org.javasimon.Counter counter)
        Deprecated.
      • storeCounter

        protected void storeCounter​(org.javasimon.Counter counter)
        Deprecated.
      • counterDecrease

        public void counterDecrease​(org.javasimon.Counter counter,
                                    long dec)
        Deprecated.
        Specified by:
        counterDecrease in interface org.javasimon.Callback
        Overrides:
        counterDecrease in class org.javasimon.CallbackSkeleton
      • counterSet

        public void counterSet​(org.javasimon.Counter counter,
                               long val)
        Deprecated.
        Specified by:
        counterSet in interface org.javasimon.Callback
        Overrides:
        counterSet in class org.javasimon.CallbackSkeleton
      • counterIncrease

        public void counterIncrease​(org.javasimon.Counter counter,
                                    long inc)
        Deprecated.
        Specified by:
        counterIncrease in interface org.javasimon.Callback
        Overrides:
        counterIncrease in class org.javasimon.CallbackSkeleton