11 |
|
* removes hardwiring of calls to {@link Thread#Thread(Runnable) new Thread}, |
12 |
|
* enabling applications to use special thread subclasses, priorities, etc. |
13 |
|
* |
14 |
< |
* <p> |
14 |
> |
* <p> |
15 |
|
* The simplest implementation of this interface is just: |
16 |
|
* <pre> |
17 |
|
* class SimpleThreadFactory implements ThreadFactory { |
23 |
|
* |
24 |
|
* The {@link Executors#defaultThreadFactory} method provides a more |
25 |
|
* useful simple implementation, that sets the created thread context |
26 |
< |
* to known values before returning it. |
26 |
> |
* to known values before returning it. |
27 |
|
* @since 1.5 |
28 |
|
* @author Doug Lea |
29 |
|
*/ |
30 |
< |
public interface ThreadFactory { |
30 |
> |
public interface ThreadFactory { |
31 |
|
|
32 |
|
/** |
33 |
|
* Constructs a new <tt>Thread</tt>. Implementations may also initialize |