EDU.oswego.cs.dl.util.concurrent
Class ThreadFactoryUser
java.lang.Object
|
+--EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
- Direct Known Subclasses:
- ClockDaemon, PooledExecutor, QueuedExecutor, ThreadedExecutor, TimedCallable
- public class ThreadFactoryUser
- extends java.lang.Object
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 EDU.oswego.cs.dl.util.concurrent.ThreadFactory |
threadFactory_
|
Method Summary |
EDU.oswego.cs.dl.util.concurrent.ThreadFactory |
getThreadFactory()
Get the factory for creating new threads. |
EDU.oswego.cs.dl.util.concurrent.ThreadFactory |
setThreadFactory(EDU.oswego.cs.dl.util.concurrent.ThreadFactory factory)
Set the factory for creating new threads. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
threadFactory_
protected EDU.oswego.cs.dl.util.concurrent.ThreadFactory threadFactory_
ThreadFactoryUser
public ThreadFactoryUser()
setThreadFactory
public EDU.oswego.cs.dl.util.concurrent.ThreadFactory setThreadFactory(EDU.oswego.cs.dl.util.concurrent.ThreadFactory factory)
- 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.
- Parameters:
factory
- the factory to use
- Returns:
- the previous factory
getThreadFactory
public EDU.oswego.cs.dl.util.concurrent.ThreadFactory getThreadFactory()
- Get the factory for creating new threads.