Skip navigation links
org.alfresco.bm.driver.event.producer

Class AbstractEventProducer

    • Field Detail

      • DEFAULT_CHART

        protected static final boolean DEFAULT_CHART
      • DEFAULT_AUTO_PROPAGATE_SESSION_ID

        protected static final boolean DEFAULT_AUTO_PROPAGATE_SESSION_ID
      • DEFAULT_AUTO_CLOSE_SESSION_ID

        protected static final boolean DEFAULT_AUTO_CLOSE_SESSION_ID
      • logger

        protected org.apache.commons.logging.Log logger
        Resource for derived classes to use for logging
    • Constructor Detail

      • AbstractEventProducer

        public AbstractEventProducer()
        Default constructor
    • Method Detail

      • setBeanName

        public void setBeanName(String beanName)
        Specified by:
        setBeanName in interface org.springframework.beans.factory.BeanNameAware
      • setEventName

        public void setEventName(String eventName)
        Set the single event name that this producer can handle
      • setEventNames

        public void setEventNames(List<String> eventNames)
        Set the names of the events that this producer can handle
      • register

        public void register()
        Register this instance for the event names that are handled.
      • suspendTimer

        protected long suspendTimer()
        Suspend the event processing timer.
        Throws:
        IllegalStateException - if the timer is not running
      • resumeTimer

        protected long resumeTimer()
        Continue timing the event processing
        Throws:
        IllegalStateException - if the timer is is not suspended
      • stopTimer

        protected long stopTimer()
        Stop timing the event processing. This does not need to be called by derived classes.
        Throws:
        IllegalStateException - if the timer is is not running or suspended

Copyright © 2005–2018 Alfresco Software. All rights reserved.