Package org.bonitasoft.engine.work
Interface BonitaExecutorService
-
- All Known Implementing Classes:
BonitaThreadPoolExecutor
public interface BonitaExecutorServiceThis is the interface we use to wrap the ThreadPool that execute works- Author:
- Julien Reboul, Baptiste Mesta
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanawaitTermination(long workTerminationTimeout, java.util.concurrent.TimeUnit seconds)voidclearAllQueues()clear the queue of workvoidshutdownAndEmptyQueue()shutdown and handle the queue properlyvoidsubmit(WorkDescriptor work)Execute the work described by the work descriptor
-
-
-
Method Detail
-
clearAllQueues
void clearAllQueues()
clear the queue of work
-
shutdownAndEmptyQueue
void shutdownAndEmptyQueue()
shutdown and handle the queue properly
-
submit
void submit(WorkDescriptor work)
Execute the work described by the work descriptor- Parameters:
work-
-
awaitTermination
boolean awaitTermination(long workTerminationTimeout, java.util.concurrent.TimeUnit seconds) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-