public interface


implements Executor
Known Indirect Subclasses

Class Overview

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 Executor interface; extending it now in Spring 3.0, so that clients may declare a dependency on an Executor and receive any TaskExecutor implementation. This interface remains separate from the standard Executor interface mainly for backwards compatibility with JDK 1.4 in Spring 2.x.

See Also


Public Methods
abstract void execute(Runnable task)
Execute the given task.
Inherited Methods
From interface java.util.concurrent.Executor

Public Methods

public abstract void execute (Runnable task)

Also: SpringCore

Execute the given task.

The call might return immediately if the implementation uses an asynchronous execution strategy, or might block in the case of synchronous execution.

task the Runnable to execute (never null)
TaskRejectedException if the given task was not accepted