org.springframework.core.task |
This package defines Spring's core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
|
Java Source File Name | Type | Comment |
AsyncTaskExecutor.java | Interface | Extended interface for asynchronous
TaskExecutor implementations,
offering an overloaded
AsyncTaskExecutor.execute(Runnable,long) variant with
start timeout parameter. |
SimpleAsyncTaskExecutor.java | Class | TaskExecutor implementation that fires up a new Thread for each task,
executing it asynchronously.
Supports limiting concurrent threads through the "concurrencyLimit"
bean property. |
SyncTaskExecutor.java | Class | TaskExecutor implementation that executes each task
synchronously in the calling thread.
Mainly intended for testing scenarios.
Execution in the calling thread does have the advantage of participating
in it's thread context, for example the thread context class loader or the
thread's current transaction association. |
TaskExecutor.java | Interface | Simple task executor interface that abstracts the execution
of a
Runnable .
Implementations can use all sorts of different execution strategies,
such as: synchronous, asynchronous, using a thread pool, and more.
Equivalent to JDK 1.5's
java.util.concurrent.Executor interface. |
TaskRejectedException.java | Class | Exception thrown when a
TaskExecutor rejects to accept
a given task for execution. |
TaskTimeoutException.java | Class | Exception thrown when a
AsyncTaskExecutor rejects to accept
a given task for execution because of the specified timeout. |