30 |
|
public interface ThreadFactory { |
31 |
|
|
32 |
|
/** |
33 |
< |
* Constructs a new <tt>Thread</tt>. Implementations may also initialize |
34 |
< |
* priority, name, daemon status, <tt>ThreadGroup</tt>, etc. |
33 |
> |
* Constructs a new {@code Thread}. Implementations may also initialize |
34 |
> |
* priority, name, daemon status, {@code ThreadGroup}, etc. |
35 |
|
* |
36 |
|
* @param r a runnable to be executed by new thread instance |
37 |
< |
* @return constructed thread, or <tt>null</tt> if the request to |
38 |
< |
* create a thread is rejected. |
37 |
> |
* @return constructed thread, or {@code null} if the request to |
38 |
> |
* create a thread is rejected |
39 |
|
*/ |
40 |
|
Thread newThread(Runnable r); |
41 |
|
} |