org.apache.qpid.junit.concurrency
Class DefaultThreadFactory
java.lang.Object
org.apache.qpid.junit.concurrency.DefaultThreadFactory
- All Implemented Interfaces:
- ThreadFactory
public class DefaultThreadFactory
- extends Object
- implements ThreadFactory
Implements a default thread factory.
CRC Card
Responsibilities | Collaborations
|
---|
Create default threads with no specialization.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultThreadFactory
public DefaultThreadFactory()
newThread
public Thread newThread(Runnable r)
- Constructs a new Thread.
- Specified by:
newThread
in interface ThreadFactory
- Parameters:
r
- A runnable to be executed by new thread instance.
- Returns:
- The constructed thread.
Licensed to the Apache Software Foundation