Class EventGeneratorQueue

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    public class EventGeneratorQueue
    extends Object
    implements org.springframework.beans.factory.InitializingBean
    • Field Detail

      • LOGGER

        protected static final org.apache.commons.logging.Log LOGGER
      • enqueueThreadPoolExecutor

        protected Executor enqueueThreadPoolExecutor
      • dequeueThreadPoolExecutor

        protected Executor dequeueThreadPoolExecutor
      • queue

        protected BlockingQueue<org.alfresco.repo.event2.EventGeneratorQueue.EventInMaking> queue
    • Constructor Detail

      • EventGeneratorQueue

        public EventGeneratorQueue()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • setEvent2MessageProducer

        public void setEvent2MessageProducer​(Event2MessageProducer event2MessageProducer)
      • setEnqueueThreadPoolExecutor

        public void setEnqueueThreadPoolExecutor​(Executor enqueueThreadPoolExecutor)
      • setDequeueThreadPoolExecutor

        public void setDequeueThreadPoolExecutor​(Executor dequeueThreadPoolExecutor)
      • accept

        public void accept​(Callable<org.alfresco.repo.event.v1.model.RepoEvent<?>> maker)
        Procedure to enqueue the callback functions that creates an event.
        Parameters:
        maker - Callback function that creates an event.