ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ThreadFactory.java
Revision: 1.3
Committed: Tue Jun 24 14:34:49 2003 UTC (20 years, 11 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_CR1, JSR166_PRELIMINARY_TEST_RELEASE_2
Changes since 1.2: +3 -2 lines
Log Message:
Added missing javadoc tags; minor reformatting

File Contents

# User Rev Content
1 tim 1.1 /*
2 dl 1.2 * Written by Doug Lea with assistance from members of JCP JSR-166
3     * Expert Group and released to the public domain. Use, modify, and
4     * redistribute this code in any way without acknowledgement.
5 tim 1.1 */
6    
7     package java.util.concurrent;
8    
9     /**
10     * An object that creates new threads on demand. Using thread factories
11     * removes hardwiring of calls to {@link Thread#Thread(Runnable) new Thread},
12     * enabling applications to use special thread subclasses, priorities, etc.
13     *
14     * @since 1.5
15     *
16     * @spec JSR-166
17 dl 1.3 * @revised $Date: 2003/05/27 18:14:40 $
18     * @editor $Author: dl $
19     * @author Doug Lea
20 tim 1.1 */
21     public interface ThreadFactory {
22    
23     /**
24     * Constructs a new <tt>Thread</tt>. Implementations may also initialize
25     * priority, name, daemon status, <tt>ThreadGroup</tt>, etc.
26     *
27     * @param r a runnable to be executed by new thread instance
28     * @return constructed thread
29     */
30     Thread newThread(Runnable r);
31     }