Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » core » task » [javadoc | source]
org.springframework.core.task
public interface: TaskExecutor [javadoc | source]

All Known Implementing Classes:
    SimpleThreadPoolTaskExecutor, SimpleAsyncTaskExecutor, JBossWorkManagerTaskExecutor, SyncTaskExecutor, GlassFishWorkManagerTaskExecutor, ConcurrentTaskExecutor, SchedulingTaskExecutor, ThreadPoolTaskExecutor, WorkManagerTaskExecutor, ConcurrentTaskExecutor, WorkManagerTaskExecutor, ThreadPoolTaskExecutor, AsyncTaskExecutor, TimerTaskExecutor

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. Separate mainly for compatibility with JDK 1.4. Implementations can simply implement the JDK 1.5 Executor interface as well, as it defines the exact same method signature.

Method from org.springframework.core.task.TaskExecutor Summary:
execute
Method from org.springframework.core.task.TaskExecutor Detail:
 public  void execute(Runnable task)
    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.