@EnableAsync @ConditionalOnMissingBean(value=GlobalThreadPoolConfig.class) @Configuration(value="globalThreadPoolConfig") @EnableConfigurationProperties(value=ThreadPoolConfigProps.class) public class GlobalThreadPoolConfig extends java.lang.Object implements org.springframework.context.ApplicationContextAware, org.springframework.scheduling.annotation.AsyncConfigurer, org.springframework.beans.factory.DisposableBean
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
ASYNC_THREAD_POOL_EXECUTOR_TRAIL_NAME |
| 构造器和说明 |
|---|
GlobalThreadPoolConfig(ThreadPoolConfigProps threadPoolConfigProps) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
java.util.concurrent.Executor |
getAsyncExecutor() |
java.util.concurrent.ThreadPoolExecutor |
getAsyncThreadPoolExecutor() |
void |
setApplicationContext(@NotNull org.springframework.context.ApplicationContext applicationContext) |
public static final java.lang.String ASYNC_THREAD_POOL_EXECUTOR_TRAIL_NAME
public GlobalThreadPoolConfig(ThreadPoolConfigProps threadPoolConfigProps)
public void setApplicationContext(@NotNull
@NotNull org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException@Bean(value="asyncThreadPoolExecutorTrail") public java.util.concurrent.ThreadPoolExecutor getAsyncThreadPoolExecutor()
public java.util.concurrent.Executor getAsyncExecutor()
getAsyncExecutor 在接口中 org.springframework.scheduling.annotation.AsyncConfigurerpublic void destroy()
destroy 在接口中 org.springframework.beans.factory.DisposableBean