EDU.oswego.cs.dl.util.concurrent
public class: ThreadFactoryUser [javadoc |
source]
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
Direct Known Subclasses:
ClockDaemon, TimedCallable, ThreadedExecutor, ForcedStartThreadedExecutor, SwingWorker, QueuedExecutor, PooledExecutor
Base class for Executors and related classes that rely on thread factories.
Generally intended to be used as a mixin-style abstract class, but
can also be used stand-alone.
[ Introduction to this package. ]
Field Summary |
---|
protected ThreadFactory | threadFactory_ | |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser Detail: |
public synchronized ThreadFactory getThreadFactory() {
return threadFactory_;
}
Get the factory for creating new threads. |
public synchronized ThreadFactory setThreadFactory(ThreadFactory factory) {
ThreadFactory old = threadFactory_;
threadFactory_ = factory;
return old;
}
Set the factory for creating new threads.
By default, new threads are created without any special priority,
threadgroup, or status parameters.
You can use a different factory
to change the kind of Thread class used or its construction
parameters. |