Represents a task executor, which is something similar to threads.
Each time a task is launched, a new executor is spawned, executing and watching the task
Alive task executors can be retrieved with the {@link Scheduler#getExecutingTasks()} method, and they expose method tocontrol the ongoing execution.
@see Scheduler#getExecutingTasks() @author Carlo Pelliccia @since 2.0Because of using a thread pool and the ability to block The user must take care of the following requirements:
Copyright (C) 2013 Carlos Eduardo Leite de Andrade
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see www.gnu.org/licenses/
For more information, contact: www.japura.org
@author Carlos Eduardo Leite de Andrade
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 {@link java.util.concurrent.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. @author Juergen Hoeller @since 2.0 @see java.util.concurrent.Executor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|