Package org.alfresco.repo.event2
Class EventGeneratorQueue
- java.lang.Object
-
- org.alfresco.repo.event2.EventGeneratorQueue
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class EventGeneratorQueue extends Object implements org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description protected ExecutordequeueThreadPoolExecutorprotected ExecutorenqueueThreadPoolExecutorprotected Event2MessageProducerevent2MessageProducerprotected Runnablelistenerprotected static org.apache.commons.logging.LogLOGGERprotected BlockingQueue<org.alfresco.repo.event2.EventGeneratorQueue.EventInMaking>queue
-
Constructor Summary
Constructors Constructor Description EventGeneratorQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Callable<org.alfresco.repo.event.v1.model.RepoEvent<?>> maker)Procedure to enqueue the callback functions that creates an event.voidafterPropertiesSet()voidsetDequeueThreadPoolExecutor(Executor dequeueThreadPoolExecutor)voidsetEnqueueThreadPoolExecutor(Executor enqueueThreadPoolExecutor)voidsetEvent2MessageProducer(Event2MessageProducer event2MessageProducer)
-
-
-
Field Detail
-
LOGGER
protected static final org.apache.commons.logging.Log LOGGER
-
enqueueThreadPoolExecutor
protected Executor enqueueThreadPoolExecutor
-
dequeueThreadPoolExecutor
protected Executor dequeueThreadPoolExecutor
-
event2MessageProducer
protected Event2MessageProducer event2MessageProducer
-
queue
protected BlockingQueue<org.alfresco.repo.event2.EventGeneratorQueue.EventInMaking> queue
-
listener
protected Runnable listener
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.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.
-
-