5 |
|
*/ |
6 |
|
|
7 |
|
package java.util.concurrent; |
8 |
< |
import java.util.concurrent.*; // for javadoc |
8 |
> |
import java.util.concurrent.*; // for javadoc (till 6280605 is fixed) |
9 |
|
import java.util.concurrent.atomic.*; |
10 |
|
import java.util.*; |
11 |
|
|
32 |
|
* <p>This class supports protected extension method |
33 |
|
* <tt>decorateTask</tt> (one version each for <tt>Runnable</tt> and |
34 |
|
* <tt>Callable</tt>) that can be used to customize the concrete task |
35 |
< |
* types used to execute commands. By default, |
35 |
> |
* types used to execute commands. By default, |
36 |
|
* a <tt>ScheduledThreadPoolExecutor</tt> uses |
37 |
|
* a task type extending {@link FutureTask}. However, this may |
38 |
|
* be modified or replaced using subclasses of the form: |
242 |
|
|
243 |
|
/** |
244 |
|
* Modify or replace the task used to execute a runnable. |
245 |
< |
* This method can be used to override the concrete |
245 |
> |
* This method can be used to override the concrete |
246 |
|
* class used for managing internal tasks. |
247 |
|
* The default implementation simply returns the given |
248 |
|
* task. |
249 |
< |
* |
249 |
> |
* |
250 |
|
* @param runnable the submitted Runnable |
251 |
|
* @param task the task created to execute the runnable |
252 |
|
* @return a task that can execute the runnable |
259 |
|
|
260 |
|
/** |
261 |
|
* Modify or replace the task used to execute a callable. |
262 |
< |
* This method can be used to override the concrete |
262 |
> |
* This method can be used to override the concrete |
263 |
|
* class used for managing internal tasks. |
264 |
|
* The default implementation simply returns the given |
265 |
|
* task. |
266 |
< |
* |
266 |
> |
* |
267 |
|
* @param callable the submitted Callable |
268 |
|
* @param task the task created to execute the callable |
269 |
|
* @return a task that can execute the callable |