Top Description Classes
module spring.context

Package org.springframework.scheduling.concurrent

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

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.

Class Summary

Modifier and TypeClass and Description
public class
ConcurrentTaskExecutor

References Deprecated AsyncListenableTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
Adapter that takes a java.util.concurrent.Executor and exposes a Spring org.springframework.core.task.TaskExecutor for it.
public class
ConcurrentTaskScheduler

References Deprecated ConcurrentTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
Adapter that takes a java.util.concurrent.ScheduledExecutorService and exposes a Spring org.springframework.scheduling.TaskScheduler for it.
public class
CustomizableThreadFactory

Implementation of the java.util.concurrent.ThreadFactory interface, allowing for customizing the created threads (name, priority, etc).

public class
DefaultManagedAwareThreadFactory

JNDI-based variant of CustomizableThreadFactory, performing a default lookup for JSR-236's "java:comp/DefaultManagedThreadFactory" in a Jakarta EE environment, falling back to the local CustomizableThreadFactory setup if not found.

public class
DefaultManagedTaskExecutor

References Deprecated ConcurrentTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
JNDI-based variant of ConcurrentTaskExecutor, performing a default lookup for JSR-236's "java:comp/DefaultManagedExecutorService" in a Jakarta EE/8 environment.
public class
DefaultManagedTaskScheduler

References Deprecated ConcurrentTaskScheduler is deprecated or references (maybe indirectly) at least one deprecated element.
JNDI-based variant of ConcurrentTaskScheduler, performing a default lookup for JSR-236's "java:comp/DefaultManagedScheduledExecutorService" in a Jakarta EE environment.
public abstract class
pack-priv class
ExecutorLifecycleDelegate

An internal delegate for common ExecutorService lifecycle management with pause/resume support.

public class
ForkJoinPoolFactoryBean

A Spring FactoryBean that builds and exposes a preconfigured ForkJoinPool.

pack-priv class
ReschedulingRunnable

Internal adapter that reschedules an underlying Runnable according to the next execution time suggested by a given Trigger.

public class
public class
ScheduledExecutorTask

JavaBean that describes a scheduled executor task, consisting of the Runnable and a delay plus period.

public class
SimpleAsyncTaskScheduler

References Deprecated SimpleAsyncTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
A simple implementation of Spring's TaskScheduler interface, using a single scheduler thread and executing every scheduled task in an individual separate thread.
public class
ThreadPoolExecutorFactoryBean

JavaBean that allows for configuring a java.util.concurrent.ThreadPoolExecutor in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a bean reference of its native java.util.concurrent.ExecutorService type.

public class
ThreadPoolTaskExecutor

References Deprecated AsyncListenableTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
JavaBean that allows for configuring a java.util.concurrent.ThreadPoolExecutor in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a Spring org.springframework.core.task.TaskExecutor.
public class
ThreadPoolTaskScheduler

References Deprecated AsyncListenableTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
A standard implementation of Spring's TaskScheduler interface, wrapping a native java.util.concurrent.ScheduledThreadPoolExecutor and providing all applicable configuration options for it.