Package org.springframework.scheduling.concurrent
@NonNullApi
@NonNullFields
package org.springframework.scheduling.concurrent
Scheduling convenience classes for the
java.util.concurrent
and jakarta.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.-
ClassesClassDescriptionAdapter that takes a
java.util.concurrent.Executorand exposes a SpringTaskExecutorfor it.Delegate that wraps a given Runnable/Callable with a JSR-236 ManagedTask, exposing a long-running hint based onSchedulingAwareRunnableand a given identity name.Adapter that takes ajava.util.concurrent.ScheduledExecutorServiceand exposes a SpringTaskSchedulerfor it.Implementation of theThreadFactoryinterface, allowing for customizing the created threads (name, priority, etc).JNDI-based variant ofCustomizableThreadFactory, performing a default lookup for JSR-236's "java:comp/DefaultManagedThreadFactory" in a Jakarta EE environment, falling back to the localCustomizableThreadFactorysetup if not found.JNDI-based variant ofConcurrentTaskExecutor, performing a default lookup for JSR-236's "java:comp/DefaultManagedExecutorService" in a Jakarta EE/8 environment.JNDI-based variant ofConcurrentTaskScheduler, performing a default lookup for JSR-236's "java:comp/DefaultManagedScheduledExecutorService" in a Jakarta EE environment.Base class for setting up aExecutorService(typically aThreadPoolExecutororScheduledThreadPoolExecutor).A SpringFactoryBeanthat builds and exposes a preconfiguredForkJoinPool.FactoryBeanthat sets up aScheduledExecutorService(by default: aScheduledThreadPoolExecutor) and exposes it for bean references.JavaBean that describes a scheduled executor task, consisting of theRunnableand a delay plus period.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.JavaBean that allows for configuring aThreadPoolExecutorin bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor.A standard implementation of Spring'sTaskSchedulerinterface, wrapping a nativeScheduledThreadPoolExecutorand providing all applicable configuration options for it.