Package io.github.jhipster.async
Class ExceptionHandlingAsyncTaskExecutor
- java.lang.Object
-
- io.github.jhipster.async.ExceptionHandlingAsyncTaskExecutor
-
- All Implemented Interfaces:
Executor,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.core.task.AsyncTaskExecutor,org.springframework.core.task.TaskExecutor
public class ExceptionHandlingAsyncTaskExecutor extends Object implements org.springframework.core.task.AsyncTaskExecutor, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
ExceptionHandlingAsyncTaskExecutor class.
-
-
Constructor Summary
Constructors Constructor Description ExceptionHandlingAsyncTaskExecutor(org.springframework.core.task.AsyncTaskExecutor executor)Constructor for ExceptionHandlingAsyncTaskExecutor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voiddestroy()voidexecute(Runnable task)voidexecute(Runnable task, long startTimeout)protected voidhandle(Exception e)handle.Future<?>submit(Runnable task)<T> Future<T>submit(Callable<T> task)
-
-
-
Method Detail
-
execute
public void execute(Runnable task)
-
execute
public void execute(Runnable task, long startTimeout)
- Specified by:
executein interfaceorg.springframework.core.task.AsyncTaskExecutor
-
submit
public Future<?> submit(Runnable task)
- Specified by:
submitin interfaceorg.springframework.core.task.AsyncTaskExecutor
-
submit
public <T> Future<T> submit(Callable<T> task)
- Specified by:
submitin interfaceorg.springframework.core.task.AsyncTaskExecutor
-
destroy
public void destroy() throws Exception- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
-