Package org.bonitasoft.engine.service
Class BonitaTaskExecutor
- java.lang.Object
-
- org.bonitasoft.engine.service.BonitaTaskExecutor
-
- All Implemented Interfaces:
LifecycleService,PlatformLifecycleService
public class BonitaTaskExecutor extends java.lang.Object implements PlatformLifecycleService
simply hold a cached thread pool executor to handle common asynchronous tasks
-
-
Constructor Summary
Constructors Constructor Description BonitaTaskExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.concurrent.Future<T>execute(java.util.concurrent.Callable<T> callable)java.util.concurrent.Future<?>execute(RunnableWithException runnable)voidstart()Start the servicevoidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.commons.LifecycleService
pause, resume
-
-
-
-
Method Detail
-
execute
public java.util.concurrent.Future<?> execute(RunnableWithException runnable)
-
execute
public <T> java.util.concurrent.Future<T> execute(java.util.concurrent.Callable<T> callable)
-
start
public void start()
Description copied from interface:LifecycleServiceStart the service- Specified by:
startin interfaceLifecycleService
-
stop
public void stop()
- Specified by:
stopin interfaceLifecycleService
-
-