Build 1.0_r1(from source)

java.util.concurrent
Class Executors.DefaultThreadFactory

java.lang.Object
  extended by java.util.concurrent.Executors.DefaultThreadFactory
All Implemented Interfaces:
ThreadFactory
Direct Known Subclasses:
Executors.PrivilegedThreadFactory
Enclosing class:
Executors

static class Executors.DefaultThreadFactory
extends Object
implements ThreadFactory

The default thread factory


Field Summary
(package private)  ThreadGroup group
           
(package private)  String namePrefix
           
(package private) static AtomicInteger poolNumber
           
(package private)  AtomicInteger threadNumber
           
 
Constructor Summary
Executors.DefaultThreadFactory()
           
 
Method Summary
 Thread newThread(Runnable r)
          Constructs a new Thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

poolNumber

static final AtomicInteger poolNumber

group

final ThreadGroup group

threadNumber

final AtomicInteger threadNumber

namePrefix

final String namePrefix
Constructor Detail

Executors.DefaultThreadFactory

Executors.DefaultThreadFactory()
Method Detail

newThread

public Thread newThread(Runnable r)
Description copied from interface: ThreadFactory
Constructs a new Thread. Implementations may also initialize priority, name, daemon status, ThreadGroup, etc.

Specified by:
newThread in interface ThreadFactory
Parameters:
r - a runnable to be executed by new thread instance
Returns:
constructed thread

Build 1.0_r1(from source)

Please submit a feedback, bug or feature