public class GeneralThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
Constructor and Description |
---|
GeneralThreadFactory(java.lang.String nameTemplate) |
GeneralThreadFactory(java.lang.String nameTemplate,
java.lang.ThreadGroup parentGroup) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
destroy the thread group, if any exists
|
java.lang.ThreadGroup |
getThreadGroup() |
boolean |
isMember() |
boolean |
isMember(java.lang.Thread thread) |
java.lang.Thread |
newThread(java.lang.Runnable r) |
public GeneralThreadFactory(java.lang.String nameTemplate)
public GeneralThreadFactory(java.lang.String nameTemplate, java.lang.ThreadGroup parentGroup)
public void dispose()
public java.lang.ThreadGroup getThreadGroup()
public java.lang.Thread newThread(java.lang.Runnable r)
newThread
in interface java.util.concurrent.ThreadFactory
public boolean isMember(java.lang.Thread thread)
public boolean isMember()