Class LongCounter

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware
    Direct Known Subclasses:
    MethodCounter, ObjectsReadCounter, ObjectsWrittenCounter, SessionsCreatedCounter

    public abstract class LongCounter
    extends java.lang.Object
    implements org.springframework.context.ApplicationEventPublisherAware
    Counter object which increments an internal long by some integer value, and according to some strategy publishes an InternalMessage subclass.
    Since:
    Beta4
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long count  
    • Constructor Summary

      Constructors 
      Constructor Description
      LongCounter​(int interval)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void increment​(int incr)  
      protected abstract ome.util.messages.InternalMessage message()  
      void setApplicationEventPublisher​(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)  
      • Methods inherited from class java.lang.Object

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

      • count

        protected long count
    • Constructor Detail

      • LongCounter

        public LongCounter​(int interval)
    • Method Detail

      • setApplicationEventPublisher

        public void setApplicationEventPublisher​(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
        Specified by:
        setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
      • increment

        public void increment​(int incr)
      • message

        protected abstract ome.util.messages.InternalMessage message()
        Returns:
        The message.