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)voidpause()Temporary halt the execution of this service.voidresume()resume the execution the servicevoidstart()Start the servicevoidstop()
-
-
-
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
-
pause
public void pause()
Description copied from interface:LifecycleServiceTemporary halt the execution of this service.- Specified by:
pausein interfaceLifecycleService
-
resume
public void resume()
Description copied from interface:LifecycleServiceresume the execution the service- Specified by:
resumein interfaceLifecycleService
-
-