|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaitools.DaemonThreadFactory
public class DaemonThreadFactory
Simple ThreadFactory implementation to supply daemon threads with specified priority. Used by JAITools classes that run polling services on background threads to avoid blocking application exit.
| Constructor Summary | |
|---|---|
DaemonThreadFactory()
Creates a new factory which will supply daemon threads having normal priority. |
|
DaemonThreadFactory(int priority)
Creates a new factory which will supply daemon threads to run at the specified priority. |
|
DaemonThreadFactory(int priority,
String rootName)
Creates a new factory which will supply daemon threads to run at the specified priority. |
|
| Method Summary | |
|---|---|
Thread |
newThread(Runnable r)
Creates a new daemon thread with name and priority assigned as per the values supplied when creating this thread factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DaemonThreadFactory()
public DaemonThreadFactory(int priority)
priority - thread priority
public DaemonThreadFactory(int priority,
String rootName)
rootName-n
where n is the count of threads produced by all instances
of this class.
priority - thread priorityrootName - root name to label threads| Method Detail |
|---|
public Thread newThread(Runnable r)
newThread in interface ThreadFactoryr - target for the new thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||