@NonNullApi @NonNullFields

# 程序包 org.springframework.core.task

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

请参阅: 说明

- 接口概要
  接口 | 说明
  --- | ---
  AsyncListenableTaskExecutor | Extension of the `AsyncTaskExecutor` interface, adding the capability to submit tasks for `ListenableFuture`s.
  AsyncTaskExecutor | Extended interface for asynchronous `TaskExecutor` implementations, offering an overloaded `AsyncTaskExecutor.execute(Runnable, long)` variant with a start timeout parameter as well support for `Callable`.
  TaskDecorator | A callback interface for a decorator to be applied to any `Runnable` about to be executed.
  TaskExecutor | Simple task executor interface that abstracts the execution of a `Runnable`.

- 类概要
  类 | 说明
  --- | ---
  SimpleAsyncTaskExecutor | `TaskExecutor` implementation that fires up a new Thread for each task, executing it asynchronously.
  SyncTaskExecutor | `TaskExecutor` implementation that executes each task synchronously in the calling thread.

- 异常错误概要
  异常错误 | 说明
  --- | ---
  TaskRejectedException | Exception thrown when a `TaskExecutor` rejects to accept a given task for execution.
  TaskTimeoutException | Exception thrown when a `AsyncTaskExecutor` rejects to accept a given task for execution because of the specified timeout.

## 程序包org.springframework.core.task的说明

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