Package org.springframework.core.task
@NonNullApi
@NonNullFields
package org.springframework.core.task
This package defines Spring's core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
-
ClassDescriptionDeprecated.Extended 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.as of 5.3.16 since the common executors do not support start timeoutsATaskExecutorimplementation based on virtual threads in JDK 21+.
AsyncTaskExecutor.submitCompletable(Runnable)andAsyncTaskExecutor.submitCompletable(Callable)