public class TraceableThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
TraceableThreadFactory.getActiveThreadGroups(), allowing iteration of the the threads in the group.| Constructor and Description |
|---|
TraceableThreadFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List |
getActiveThreadGroups()
Get a list of thread groups registered by the factory.
|
java.lang.String |
getNamePrefix() |
java.lang.Thread |
newThread(java.lang.Runnable r) |
void |
setNamePrefix(java.lang.String namePrefix) |
void |
setThreadDaemon(boolean daemon) |
void |
setThreadPriority(int threadPriority) |
public static java.util.List 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 java.lang.Thread newThread(java.lang.Runnable r)
newThread in interface java.util.concurrent.ThreadFactorypublic void setNamePrefix(java.lang.String namePrefix)
public java.lang.String getNamePrefix()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.