|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.thread.impl.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)
setDaemon in interface org.apache.cocoon.thread.ThreadFactoryisDaemon - Whether or not new Thread should run as
daemons.public boolean isDaemon()
isDaemon in interface org.apache.cocoon.thread.ThreadFactoryThread will run as daemons.public void setPriority(int priority)
Threads should have
setPriority in interface org.apache.cocoon.thread.ThreadFactorypriority - One of Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, Thread.MAX_PRIORITYpublic int getPriority()
Threads will have
getPriority in interface org.apache.cocoon.thread.ThreadFactoryThread.MIN_PRIORITY, Thread.NORM_PRIORITY, Thread.MAX_PRIORITYpublic Thread newThread(Runnable command)
newThread in interface org.apache.cocoon.thread.ThreadFactorycommand - The Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||