Class CounterHistoryStack

java.lang.Object
org.nuxeo.runtime.management.counters.CounterHistoryStack
All Implemented Interfaces:
Iterable<long[]>

@Deprecated(since="11.4") public class CounterHistoryStack extends Object implements Iterable<long[]>
Deprecated.
since 11.4: use dropwizard metrics instead
Fixed length Stack that is used to store values of a counter over time
Author:
Tiry ([email protected])
  • Field Details

    • list

      protected final LinkedList<long[]> list
      Deprecated.
    • maxSize

      protected final int maxSize
      Deprecated.
  • Constructor Details

    • CounterHistoryStack

      public CounterHistoryStack(int size)
      Deprecated.
  • Method Details

    • push

      public void push(long[] item)
      Deprecated.
    • iterator

      public Iterator<long[]> iterator()
      Deprecated.
      Specified by:
      iterator in interface Iterable<long[]>
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • get

      public long[] get(int idx)
      Deprecated.
    • getAsList

      public LinkedList<long[]> getAsList()
      Deprecated.