|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.util.thread.NamedThread.ConcurrentThreadFactory
A thread factory for use with the Concurrent API. This factory creates threads
of type NamedThread
and provides the ability to name the threads via the
base name facility of NamedThread
. Threads created by this
factory may be daemon threads if desired
(see ConcurrentThreadFactory#ConcurrentThreadFactory(String, boolean)
).
Constructor Summary | |
NamedThread.ConcurrentThreadFactory()
Creates a factory that does not define a base name for the user threads it will create. |
|
NamedThread.ConcurrentThreadFactory(boolean isDaemon)
Creates a factory that does not define a base name for the threads it will create but explicitly defines whether or not the threads will be daemon or user threads. |
|
NamedThread.ConcurrentThreadFactory(java.lang.String baseName)
Creates a factory that defines a base name for the user threads it will create. |
|
NamedThread.ConcurrentThreadFactory(java.lang.String baseName,
boolean isDaemon)
Creates a factory that defines the new threads' base names and whether or not the threads to be created will be daemon or user threads. |
Method Summary | |
java.lang.Thread |
newThread(java.lang.Runnable command)
Creates a NamedThread using this factory's base name as the new thread's base name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NamedThread.ConcurrentThreadFactory()
public NamedThread.ConcurrentThreadFactory(java.lang.String baseName)
baseName
- the base name used for all threads created by this factory (may be null
)NamedThread.getBaseName()
public NamedThread.ConcurrentThreadFactory(boolean isDaemon)
isDaemon
- if true
then all threads created by this factory will be daemon threads.public NamedThread.ConcurrentThreadFactory(java.lang.String baseName, boolean isDaemon)
baseName
- the base name used for all threads created by this factory (may be null
)isDaemon
- if true
then all threads created by this factory will be daemon threads.Method Detail |
public java.lang.Thread newThread(java.lang.Runnable command)
NamedThread
using this factory's base name as the new thread's base name.
newThread
in interface EDU.oswego.cs.dl.util.concurrent.ThreadFactory
ThreadFactory.newThread(java.lang.Runnable)
,
NamedThread.NamedThread(Runnable, String)
,
NamedThread.getBaseName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |