Package com.mikuac.shiro.task
Class ShiroTaskPoolConfig
java.lang.Object
com.mikuac.shiro.task.ShiroTaskPoolConfig
线程池
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.scheduling.concurrent.ThreadPoolTaskExecutor平台线程池org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor虚拟线程池
-
Constructor Details
-
ShiroTaskPoolConfig
-
-
Method Details
-
shiroTaskPlatformExecutor
@Bean("shiroTaskExecutor") @ConditionalOnThreading(PLATFORM) @ConditionalOnProperty(value="shiro.task-pool.enable-task-pool", havingValue="true", matchIfMissing=true) public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor shiroTaskPlatformExecutor()平台线程池- Returns:
ThreadPoolTaskExecutor
-
shiroTaskVirtualExecutor
@Bean("shiroTaskExecutor") @ConditionalOnThreading(VIRTUAL) @ConditionalOnProperty(value="shiro.task-pool.enable-task-pool", havingValue="true", matchIfMissing=true) public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor shiroTaskVirtualExecutor()虚拟线程池- Returns:
ThreadPoolTaskExecutor
-