类 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 支持异步获取信息
  • 构造器详细资料

    • ThreadPoolConfig

      public ThreadPoolConfig()
  • 方法详细资料

    • getAsyncExecutor

      public Executor 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()
      执行周期性或定时任务
      返回:
      线程池