public class TraceableThreadFactory extends Object implements ThreadFactory
getActiveThreadGroups()
, allowing iteration of the the threads in the group.Constructor and Description |
---|
TraceableThreadFactory() |
Modifier and Type | Method and Description |
---|---|
static List<ThreadGroup> |
getActiveThreadGroups()
Get a list of thread groups registered by the factory.
|
String |
getNamePrefix() |
Thread |
newThread(Runnable r) |
void |
setNamePrefix(String namePrefix) |
void |
setThreadDaemon(boolean daemon) |
void |
setThreadPriority(int threadPriority) |
public static List<ThreadGroup> getActiveThreadGroups()
public void setThreadDaemon(boolean daemon)
daemon
- true if all threads created must be daemon threadspublic void setThreadPriority(int threadPriority)
threadPriority
- the threads priority from 1 (lowest) to 10 (highest)public Thread newThread(Runnable r)
newThread
in interface ThreadFactory
public void setNamePrefix(String namePrefix)
public String getNamePrefix()
Copyright © 2005–2016 Alfresco Software. All rights reserved.