Package org.springframework.core.task
@NullMarked
package org.springframework.core.task
This package defines Spring's core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
-
ClassDescriptionExtended interface for asynchronous
TaskExecutorimplementations, offering support forCallable.TaskExecutorimplementation that fires up a new Thread for each task, executing it asynchronously.TaskExecutorimplementation that executes each task synchronously in the calling thread.A callback interface for a decorator to be applied to anyRunnableabout to be executed.Simple task executor interface that abstracts the execution of aRunnable.Exception thrown when aTaskExecutorrejects to accept a given task for execution.Deprecated.since the common executors do not support start timeoutsATaskExecutorimplementation based on virtual threads in JDK 21+.