Class CounterFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware

    public class CounterFactory
    extends java.lang.Object
    implements org.springframework.context.ApplicationEventPublisherAware
    Factory for creating counter objects. Passed to other Spring beans to prevent constant context lookups.
    Since:
    Beta4
    • Field Detail

      • publisher

        protected org.springframework.context.ApplicationEventPublisher publisher
      • objectsReadHardLimit

        protected int objectsReadHardLimit
      • objectsWrittenHardLimit

        protected int objectsWrittenHardLimit
      • methodHardLimit

        protected int methodHardLimit
    • Constructor Detail

      • CounterFactory

        public CounterFactory()
    • Method Detail

      • setApplicationEventPublisher

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

        public void setObjectsReadHardLimit​(int objectsReadHardLimit)
      • setObjectsWrittenHardLimit

        public void setObjectsWrittenHardLimit​(int objectsWrittenHardLimit)
      • setMethodHardLimit

        public void setMethodHardLimit​(int methodHardLimit)