Package tech.jhipster.async
Class ExceptionHandlingAsyncTaskExecutor
- java.lang.Object
-
- tech.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 void
afterPropertiesSet()
void
destroy()
void
execute(Runnable task)
void
execute(Runnable task, long startTimeout)
protected void
handle(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:
execute
in interfaceorg.springframework.core.task.AsyncTaskExecutor
-
submit
public Future<?> submit(Runnable task)
- Specified by:
submit
in interfaceorg.springframework.core.task.AsyncTaskExecutor
-
submit
public <T> Future<T> submit(Callable<T> task)
- Specified by:
submit
in interfaceorg.springframework.core.task.AsyncTaskExecutor
-
destroy
public void destroy() throws Exception
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
-