Package org.bonitasoft.engine.work
Interface BonitaExecutorService
- All Known Implementing Classes:
DefaultBonitaExecutorService
public interface BonitaExecutorService
This is the interface we use to wrap the ThreadPool that execute works
- Author:
- Julien Reboul, Baptiste Mesta
-
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long workTerminationTimeout, TimeUnit seconds) voidclear the queue of workvoidshutdown and handle the queue properlyFuture<?>submit(WorkDescriptor work) Execute the work described by the work descriptor
-
Method Details
-
clearAllQueues
void clearAllQueues()clear the queue of work -
shutdownAndEmptyQueue
void shutdownAndEmptyQueue()shutdown and handle the queue properly -
submit
Execute the work described by the work descriptor- Parameters:
work-
-
awaitTermination
- Throws:
InterruptedException
-
getExecutor
ThreadPoolExecutor getExecutor()
-