# Uses of Interface
org.springframework.scheduling.TaskScheduler

Packages that use TaskScheduler
Package
Description
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.
org.springframework.scheduling.config
Support package for declarative scheduling configuration, with XML schema being the primary configuration format.
org.springframework.scheduling.support
Generic support classes for scheduling.

## Uses of TaskScheduler in org.springframework.scheduling.concurrent

Classes in org.springframework.scheduling.concurrent that implement TaskScheduler
Modifier and Type
Class
Description
`class`
`ConcurrentTaskScheduler`
Adapter that takes a `java.util.concurrent.ScheduledExecutorService` and exposes a Spring `TaskScheduler` for it.
`class`
`DefaultManagedTaskScheduler`
JNDI-based variant of `ConcurrentTaskScheduler`, performing a default lookup for JSR-236's "java:comp/DefaultManagedScheduledExecutorService" in a Jakarta EE environment.
`class`
`SimpleAsyncTaskScheduler`
A simple implementation of Spring's `TaskScheduler` interface, using a single scheduler thread and executing every scheduled task in an individual separate thread.
`class`
`ThreadPoolTaskScheduler`
A standard implementation of Spring's `TaskScheduler` interface, wrapping a native `ScheduledThreadPoolExecutor` and providing all applicable configuration options for it.

## Uses of TaskScheduler in org.springframework.scheduling.config

Classes in org.springframework.scheduling.config that implement TaskScheduler
Modifier and Type
Class
Description
`class`
`TaskSchedulerRouter`
A routing implementation of the `TaskScheduler` interface, delegating to a target scheduler based on an identified qualifier or using a default scheduler otherwise.
Methods in org.springframework.scheduling.config that return TaskScheduler
Modifier and Type
Method
Description
`protected TaskScheduler`
TaskSchedulerRouter.`determineDefaultScheduler()`
`protected TaskScheduler`
TaskSchedulerRouter.`determineQualifiedScheduler(String qualifier)`
`protected TaskScheduler`
TaskSchedulerRouter.`determineTargetScheduler(Runnable task)`
`TaskScheduler`
ScheduledTaskRegistrar.`getScheduler()`
Return the `TaskScheduler` instance for this registrar (may be `null`).
Methods in org.springframework.scheduling.config with parameters of type TaskScheduler
Modifier and Type
Method
Description
`void`
ScheduledTaskRegistrar.`setTaskScheduler(TaskScheduler taskScheduler)`
Set the `TaskScheduler` to register scheduled tasks with.

## Uses of TaskScheduler in org.springframework.scheduling.support

Classes in org.springframework.scheduling.support that implement TaskScheduler
Modifier and Type
Class
Description
`class`
`NoOpTaskScheduler`
A basic, no operation `TaskScheduler` implementation suitable for disabling scheduling, typically used for test setups.