类的使用
org.springframework.util.CustomizableThreadCreator
使用CustomizableThreadCreator的程序包 程序包 说明 org.springframework.core.task This package defines Spring's core TaskExecutor abstraction, and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.org.springframework.scheduling.concurrent Scheduling convenience classes for thejava.util.concurrent
andjavax.enterprise.concurrent
packages, allowing to set up a ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring context.org.springframework.core.task中CustomizableThreadCreator的使用
org.springframework.core.task中CustomizableThreadCreator的子类 修饰符和类型 类 说明 class
SimpleAsyncTaskExecutor
TaskExecutor
implementation that fires up a new Thread for each task, executing it asynchronously.org.springframework.scheduling.concurrent中CustomizableThreadCreator的使用
org.springframework.scheduling.concurrent中CustomizableThreadCreator的子类 修饰符和类型 类 说明 class
CustomizableThreadFactory
Implementation of theThreadFactory
interface, allowing for customizing the created threads (name, priority, etc).class
DefaultManagedAwareThreadFactory
JNDI-based variant ofCustomizableThreadFactory
, performing a default lookup for JSR-236's "java:comp/DefaultManagedThreadFactory" in a Java EE 7 environment, falling back to the localCustomizableThreadFactory
setup if not found.class
ExecutorConfigurationSupport
Base class for setting up aExecutorService
(typically aThreadPoolExecutor
orScheduledThreadPoolExecutor
).class
ScheduledExecutorFactoryBean
FactoryBean
that sets up aScheduledExecutorService
(by default: aScheduledThreadPoolExecutor
) and exposes it for bean references.class
ThreadPoolExecutorFactoryBean
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a bean reference of its nativeExecutorService
type.class
ThreadPoolTaskExecutor
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor
.class
ThreadPoolTaskScheduler
Implementation of Spring'sTaskScheduler
interface, wrapping a nativeScheduledThreadPoolExecutor
.