Class ActiveObjectCounter<T>

  • Type Parameters:
    T - the object type.

    public class ActiveObjectCounter<T>
    extends Object
    A mechanism to keep track of active objects.
    Author:
    Dave Syer, Artem Bilan
    • Constructor Detail

      • ActiveObjectCounter

        public ActiveObjectCounter()
    • Method Detail

      • add

        public void add​(T object)
      • release

        public void release​(T object)
      • getCount

        public int getCount()
      • reset

        public void reset()
      • deactivate

        public void deactivate()
      • isActive

        public boolean isActive()