|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.JPPFThreadFactory
public class JPPFThreadFactory
Custom thread factory used mostly to specifiy th enames of created threads.
| Constructor Summary | |
|---|---|
JPPFThreadFactory(String name)
Initialize this thread factory with the specified name. |
|
JPPFThreadFactory(String name,
boolean monitoringEnabled)
Initialize this thread factory with the specified name. |
|
JPPFThreadFactory(String name,
boolean monitoringEnabled,
int priority)
Initialize this thread factory with the specified name. |
|
JPPFThreadFactory(String name,
int priority)
Initialize this thread factory with the specified name. |
|
| Method Summary | |
|---|---|
int |
getPriority()
Get the priority assigned to the threads created by this factory. |
List<Long> |
getThreadIDs()
Get the ids of the monitored threads. |
Thread |
newThread(Runnable r)
Constructs a new Thread. |
void |
updatePriority(int newPriority)
Update the priority of all threads created by this factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFThreadFactory(String name)
name - the name used as prefix for the constructed threads name.
public JPPFThreadFactory(String name,
int priority)
name - the name used as prefix for the constructed threads name.priority - priority assigned to the threads created by this factory.
public JPPFThreadFactory(String name,
boolean monitoringEnabled)
name - the name used as prefix for the constructed threads name.monitoringEnabled - determines whether the threads created by this factory can be monitored.
public JPPFThreadFactory(String name,
boolean monitoringEnabled,
int priority)
name - the name used as prefix for the constructed threads name.monitoringEnabled - determines whether the threads created by this factory can be monitored.priority - priority assigned to the threads created by this factory.| Method Detail |
|---|
public Thread newThread(Runnable r)
newThread in interface ThreadFactoryr - a runnable to be executed by the new thread instance.
ThreadFactory.newThread(java.lang.Runnable)public List<Long> getThreadIDs()
public void updatePriority(int newPriority)
newPriority - the new priority to set.public int getPriority()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||