类 DustAsyncTaskExecutor
- java.lang.Object
-
- top.daxian1218.dust.service.async.DustAsyncTaskExecutor
-
- 所有已实现的接口:
java.util.concurrent.Executor
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.core.task.AsyncTaskExecutor
,org.springframework.core.task.TaskExecutor
public class DustAsyncTaskExecutor extends java.lang.Object implements org.springframework.core.task.AsyncTaskExecutor, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
异步任务执行器,用于执行异步操作,通常根据 所有任务的执行异常都会记录日志
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
DustAsyncTaskExecutor.TaskInfo<T>
-
构造器概要
构造器 构造器 说明 DustAsyncTaskExecutor(org.springframework.core.task.AsyncTaskExecutor executor)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
void
destroy()
void
execute(java.lang.Runnable task)
void
execute(java.lang.Runnable task, long startTimeout)
void
execute(DustAsyncTaskExecutor.TaskInfo taskInfo)
protected void
handle(java.lang.Exception e)
java.util.concurrent.Future<?>
submit(java.lang.Runnable task)
<T> java.util.concurrent.Future<T>
submit(java.util.concurrent.Callable<T> task)
-
-
-
方法详细资料
-
execute
public void execute(java.lang.Runnable task)
- 指定者:
execute
在接口中java.util.concurrent.Executor
- 指定者:
execute
在接口中org.springframework.core.task.TaskExecutor
-
execute
public void execute(java.lang.Runnable task, long startTimeout)
- 指定者:
execute
在接口中org.springframework.core.task.AsyncTaskExecutor
-
execute
public void execute(DustAsyncTaskExecutor.TaskInfo taskInfo)
-
handle
protected void handle(java.lang.Exception e)
-
submit
public java.util.concurrent.Future<?> submit(java.lang.Runnable task)
- 指定者:
submit
在接口中org.springframework.core.task.AsyncTaskExecutor
-
submit
public <T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> task)
- 指定者:
submit
在接口中org.springframework.core.task.AsyncTaskExecutor
-
destroy
public void destroy() throws java.lang.Exception
- 指定者:
destroy
在接口中org.springframework.beans.factory.DisposableBean
- 抛出:
java.lang.Exception
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
java.lang.Exception
-
-