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
TaskExecutor
implementations, offering support forCallable
.TaskExecutor
implementation that fires up a new Thread for each task, executing it asynchronously.TaskExecutor
implementation that executes each task synchronously in the calling thread.A callback interface for a decorator to be applied to anyRunnable
about to be executed.Simple task executor interface that abstracts the execution of aRunnable
.Exception thrown when aTaskExecutor
rejects to accept a given task for execution.Deprecated.as of 5.3.16 since the common executors do not support start timeoutsATaskExecutor
implementation based on virtual threads in JDK 21+.
AsyncTaskExecutor.submitCompletable(Runnable)
andAsyncTaskExecutor.submitCompletable(Callable)