程序包 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.Executorand exposes a SpringTaskExecutorfor it.ConcurrentTaskExecutor.ManagedTaskBuilder Delegate that wraps a given Runnable/Callable with a JSR-236 ManagedTask, exposing a long-running hint based onSchedulingAwareRunnableand a given identity name.ConcurrentTaskScheduler Adapter that takes ajava.util.concurrent.ScheduledExecutorServiceand exposes a SpringTaskSchedulerfor it.CustomizableThreadFactory Implementation of theThreadFactoryinterface, 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 localCustomizableThreadFactorysetup 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 aThreadPoolExecutororScheduledThreadPoolExecutor).ForkJoinPoolFactoryBean A SpringFactoryBeanthat builds and exposes a preconfiguredForkJoinPool.ScheduledExecutorFactoryBean FactoryBeanthat sets up aScheduledExecutorService(by default: aScheduledThreadPoolExecutor) and exposes it for bean references.ScheduledExecutorTask JavaBean that describes a scheduled executor task, consisting of theRunnableand a delay plus period.ThreadPoolExecutorFactoryBean JavaBean that allows for configuring aThreadPoolExecutorin bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a bean reference of its nativeExecutorServicetype.ThreadPoolTaskExecutor JavaBean that allows for configuring aThreadPoolExecutorin bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor.ThreadPoolTaskScheduler Implementation of Spring'sTaskSchedulerinterface, wrapping a nativeScheduledThreadPoolExecutor.