|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.common.NamedThreadFactory
public class NamedThreadFactory
Thread Factory whose threads are named.
| Constructor Summary | |
|---|---|
NamedThreadFactory(String threadFactoryName)
Creates a new thread factory with the specified name. |
|
NamedThreadFactory(String threadFactoryName,
boolean daemon)
Creates a new thread factory with the specified name. |
|
NamedThreadFactory(String threadFactoryName,
boolean daemon,
int priority,
Thread.UncaughtExceptionHandler exceptionHandler)
Creates a new thread factory with the specified name and priority. |
|
NamedThreadFactory(String threadFactoryName,
boolean daemon,
int priority,
Thread.UncaughtExceptionHandler exceptionHandler,
ThreadGroup threadGroup)
Creates a new thread factory with the specified name and priority. |
|
NamedThreadFactory(ThreadGroup threadGroup,
String threadFactoryName)
Creates a new thread factory with the specified name. |
|
| Method Summary | |
|---|---|
protected Thread.UncaughtExceptionHandler |
getExceptionHandler()
gets the exception handler for uncaught exceptions for the thread factory threads. |
protected String |
getNamePrefix()
gets the name prefix for the threads. |
protected ThreadGroup |
getThreadGroup()
gets the threads group. |
protected int |
getThreadPriority()
gets the thread priority. |
protected boolean |
isDaemon()
Indicates that the threads of the factory are daemon threads. |
Thread |
newThread(Runnable r)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedThreadFactory(String threadFactoryName)
threadFactoryName - name of the thread factory.
public NamedThreadFactory(String threadFactoryName,
boolean daemon)
threadFactoryName - name of the thread factory.daemon - indicates whether all threads of this factory are daemon
threads or not.
public NamedThreadFactory(String threadFactoryName,
boolean daemon,
int priority,
Thread.UncaughtExceptionHandler exceptionHandler)
threadFactoryName - name of the thread factory.priority - the priority of the threads.daemon - indicates whether all threads of this factory are daemon
threads or not.exceptionHandler - unhandled exception handler for the pool threads, if set to
null default handler which just logs the
exception will be used.
public NamedThreadFactory(ThreadGroup threadGroup,
String threadFactoryName)
threadGroup - thread group for newly created threads. If null and a security manager is present,
System.getSecurityManager().getThreadGroup() will be used. If null and no
security manager is present, the current thread group will be used.threadFactoryName - name of the thread factory.
public NamedThreadFactory(String threadFactoryName,
boolean daemon,
int priority,
Thread.UncaughtExceptionHandler exceptionHandler,
ThreadGroup threadGroup)
threadFactoryName - name of the thread factory.priority - the priority of the threads.daemon - indicates whether all threads of this factory are daemon
threads or not.exceptionHandler - unhandled exception handler for the pool threads, if set to
null default handler which just logs the
exception will be used.threadGroup - the thread group parent for all threads being created by this
factory.| Method Detail |
|---|
public Thread newThread(Runnable r)
newThread in interface ThreadFactoryprotected int getThreadPriority()
protected boolean isDaemon()
protected Thread.UncaughtExceptionHandler getExceptionHandler()
protected ThreadGroup getThreadGroup()
protected String getNamePrefix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||