|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.components.thread.DefaultThreadFactory
public class DefaultThreadFactory
This class is responsible to create new Thread instances to run a command.
| Constructor Summary | |
|---|---|
DefaultThreadFactory()
|
|
| Method Summary | |
|---|---|
int |
getPriority()
Get the priority newly created Threads will have |
boolean |
isDaemon()
Get the isDaemon property |
Thread |
newThread(Runnable command)
Create a new Thread for Runnable |
void |
setDaemon(boolean isDaemon)
Set the isDaemon property |
void |
setPriority(int priority)
Set the priority newly created Threads should have |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultThreadFactory()
| Method Detail |
|---|
public void setDaemon(boolean isDaemon)
isDaemon - Whether or not new Thread should run as
daemons.public boolean isDaemon()
Thread will run as daemons.public void setPriority(int priority)
Threads should have
priority - One of Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, Thread.MAX_PRIORITYpublic int getPriority()
Threads will have
Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, Thread.MAX_PRIORITYpublic Thread newThread(Runnable command)
newThread in interface EDU.oswego.cs.dl.util.concurrent.ThreadFactorycommand - The Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||