svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / task / TaskManager.java @ 25264
History | View | Annotate | Download (475 Bytes)
1 |
package org.gvsig.tools.task; |
---|---|
2 |
|
3 |
|
4 |
public interface TaskManager { |
5 |
|
6 |
public Queue createQueue(); |
7 |
|
8 |
/**
|
9 |
* Register the executor for the current thread.
|
10 |
*
|
11 |
* @param executor
|
12 |
*/
|
13 |
public void registerExecutor(Executor executor) ; |
14 |
|
15 |
/**
|
16 |
* Get the associated executor to the current thread.
|
17 |
*
|
18 |
* If not exist an executor for the current thread return a dumb
|
19 |
* executor.
|
20 |
*
|
21 |
* @return the executor for the current thread.
|
22 |
*/
|
23 |
public Executor getExecutor(); |
24 |
} |