Class CommandCounter


  • public class CommandCounter
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.atomic.AtomicLong count  
      protected java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandCounter​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long get()  
      long get​(boolean clear)  
      long getAndClear()  
      java.lang.String getName()  
      void mark()  
      void mark​(long times)  
      void setName​(java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
      • count

        protected java.util.concurrent.atomic.AtomicLong count
    • Constructor Detail

      • CommandCounter

        public CommandCounter​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • mark

        public void mark()
      • mark

        public void mark​(long times)
      • getAndClear

        public long getAndClear()
      • get

        public long get​(boolean clear)
      • get

        public long get()