Package org.springframework.core.task
This package defines Spring's core TaskExecutor abstraction, and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
Interface Summary Interface Description AsyncListenableTaskExecutor Extension of theAsyncTaskExecutorinterface, adding the capability to submit tasks forListenableFutures.AsyncTaskExecutor Extended interface for asynchronousTaskExecutorimplementations, offering an overloadedAsyncTaskExecutor.execute(Runnable, long)variant with a start timeout parameter as well support forCallable.TaskDecorator A callback interface for a decorator to be applied to anyRunnableabout to be executed.TaskExecutor Simple task executor interface that abstracts the execution of aRunnable.Class Summary Class Description SimpleAsyncTaskExecutor TaskExecutorimplementation that fires up a new Thread for each task, executing it asynchronously.SyncTaskExecutor TaskExecutorimplementation that executes each task synchronously in the calling thread.Exception Summary Exception Description TaskRejectedException Exception thrown when aTaskExecutorrejects to accept a given task for execution.TaskTimeoutException Exception thrown when aAsyncTaskExecutorrejects to accept a given task for execution because of the specified timeout.