Top Description Interfaces Classes
[default module]

Package org.springframework.core.task

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

This package defines Spring's core TaskExecutor abstraction, and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.

Interface Summary

Modifier and TypeInterface and Description
public interface
AsyncListenableTaskExecutor

Extension of the AsyncTaskExecutor interface, adding the capability to submit tasks for ListenableFutures.
public interface
AsyncTaskExecutor

Extended interface for asynchronous TaskExecutor implementations, offering support for java.util.concurrent.Callable.

public interface
TaskDecorator

A callback interface for a decorator to be applied to any Runnable about to be executed.

public interface
TaskExecutor

Simple task executor interface that abstracts the execution of a Runnable.

Class Summary

Modifier and TypeClass and Description
public class
SimpleAsyncTaskExecutor

Deprecated as a consequence of AsyncListenableTaskExecutor being deprecated.
TaskExecutor implementation that fires up a new Thread for each task, executing it asynchronously.
public class
SyncTaskExecutor

TaskExecutor implementation that executes each task synchronously in the calling thread.

public class
TaskRejectedException

Exception thrown when a TaskExecutor rejects to accept a given task for execution.

public class
TaskTimeoutException

Deprecated as of 5.3.16 since the common executors do not support start timeouts
Exception thrown when a AsyncTaskExecutor rejects to accept a given task for execution because of the specified timeout.
pack-priv class
VirtualThreadDelegate

Internal delegate for virtual thread handling on JDK 21.

public class
VirtualThreadTaskExecutor

A TaskExecutor implementation based on virtual threads in JDK 21+.