程序包 org.springframework.scheduling.concurrent
Scheduling convenience classes for the
java.util.concurrent
and javax.enterprise.concurrent
packages, allowing to set up a ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring context. Provides support for the native java.util.concurrent
interfaces as well as the Spring TaskExecutor
mechanism.类概要 类 说明 ConcurrentTaskExecutor Adapter that takes ajava.util.concurrent.Executor
and exposes a SpringTaskExecutor
for it.ConcurrentTaskExecutor.ManagedTaskBuilder Delegate that wraps a given Runnable/Callable with a JSR-236 ManagedTask, exposing a long-running hint based onSchedulingAwareRunnable
and a given identity name.ConcurrentTaskScheduler Adapter that takes ajava.util.concurrent.ScheduledExecutorService
and exposes a SpringTaskScheduler
for it.CustomizableThreadFactory Implementation of theThreadFactory
interface, allowing for customizing the created threads (name, priority, etc).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.DefaultManagedTaskExecutor JNDI-based variant ofConcurrentTaskExecutor
, performing a default lookup for JSR-236's "java:comp/DefaultManagedExecutorService" in a Java EE 7/8 environment.DefaultManagedTaskScheduler JNDI-based variant ofConcurrentTaskScheduler
, performing a default lookup for JSR-236's "java:comp/DefaultManagedScheduledExecutorService" in a Java EE 7 environment.ExecutorConfigurationSupport Base class for setting up aExecutorService
(typically aThreadPoolExecutor
orScheduledThreadPoolExecutor
).ForkJoinPoolFactoryBean A SpringFactoryBean
that builds and exposes a preconfiguredForkJoinPool
.ScheduledExecutorFactoryBean FactoryBean
that sets up aScheduledExecutorService
(by default: aScheduledThreadPoolExecutor
) and exposes it for bean references.ScheduledExecutorTask JavaBean that describes a scheduled executor task, consisting of theRunnable
and a delay plus period.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.ThreadPoolTaskExecutor JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor
.ThreadPoolTaskScheduler Implementation of Spring'sTaskScheduler
interface, wrapping a nativeScheduledThreadPoolExecutor
.