Package org.nuxeo.ecm.core.event.impl
Class AsyncEventExecutor
- java.lang.Object
-
- org.nuxeo.ecm.core.event.impl.AsyncEventExecutor
-
public class AsyncEventExecutor extends Object
Executor of async listeners passing them to the WorkManager.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAsyncEventExecutor.ListenerWork
-
Constructor Summary
Constructors Constructor Description AsyncEventExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActiveCount()intgetUnfinishedCount()WorkManagergetWorkManager()voidinit()voidrun(List<EventListenerDescriptor> listeners, EventBundle bundle)booleanshutdown(long timeoutMillis)booleanwaitForCompletion(long timeoutMillis)
-
-
-
Method Detail
-
getWorkManager
public WorkManager getWorkManager()
-
init
public void init()
-
shutdown
public boolean shutdown(long timeoutMillis) throws InterruptedException- Throws:
InterruptedException
-
waitForCompletion
public boolean waitForCompletion(long timeoutMillis) throws InterruptedException- Throws:
InterruptedException
-
run
public void run(List<EventListenerDescriptor> listeners, EventBundle bundle)
-
getUnfinishedCount
public int getUnfinishedCount()
-
getActiveCount
public int getActiveCount()
-
-