5 |
|
*/ |
6 |
|
|
7 |
|
package java.util.concurrent; |
8 |
< |
|
8 |
> |
import java.util.concurrent.*; // for javadoc (till 6280605 is fixed) |
9 |
|
import java.util.*; |
10 |
|
|
11 |
|
/** |
26 |
|
* <pre> |
27 |
|
* public class CustomThreadPoolExecutor extends ThreadPoolExecutor { |
28 |
|
* |
29 |
< |
* static class CustomTask<V> implements RunnableFuture<V> {...} |
29 |
> |
* static class CustomTask<V> implements RunnableFuture<V> {...} |
30 |
|
* |
31 |
< |
* protected <V> RunnableFuture<V> newTaskFor(Callable<V> c) { |
32 |
< |
* return new CustomTask<V>(c); |
33 |
< |
* } |
34 |
< |
* protected <V> RunnableFuture<V> newTaskFor(Runnable r, V v) { |
35 |
< |
* return new CustomTask<V>(r, v); |
36 |
< |
* } |
37 |
< |
* // ... add constructors, etc. |
31 |
> |
* protected <V> RunnableFuture<V> newTaskFor(Callable<V> c) { |
32 |
> |
* return new CustomTask<V>(c); |
33 |
> |
* } |
34 |
> |
* protected <V> RunnableFuture<V> newTaskFor(Runnable r, V v) { |
35 |
> |
* return new CustomTask<V>(r, v); |
36 |
> |
* } |
37 |
> |
* // ... add constructors, etc. |
38 |
|
* } |
39 |
|
* </pre> |
40 |
|
* @since 1.5 |