类 ThreadPoolConfig
java.lang.Object
cn.sinozg.applet.common.config.ThreadPoolConfig
- 所有已实现的接口:
org.springframework.scheduling.annotation.AsyncConfigurer
@EnableAsync
@Configuration
public class ThreadPoolConfig
extends Object
implements org.springframework.scheduling.annotation.AsyncConfigurer
线程池配置 包装注解@Async 支持异步获取信息
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明配置注解@Async的org.springframework.aop.interceptor.AsyncUncaughtExceptionHandlerprotected ScheduledExecutorService执行周期性或定时任务
-
构造器详细资料
-
ThreadPoolConfig
public ThreadPoolConfig()
-
-
方法详细资料
-
getAsyncExecutor
配置注解@Async的- 指定者:
getAsyncExecutor在接口中org.springframework.scheduling.annotation.AsyncConfigurer- 返回:
- 线程池
-
getAsyncUncaughtExceptionHandler
public org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()- 指定者:
getAsyncUncaughtExceptionHandler在接口中org.springframework.scheduling.annotation.AsyncConfigurer
-
scheduledExecutorService
@Bean(name="scheduledExecutorService") protected ScheduledExecutorService scheduledExecutorService()执行周期性或定时任务- 返回:
- 线程池
-