|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Thread s 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 Thread s 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)
Thread
s should have
priority
- One of Thread.MIN_PRIORITY
, Thread.NORM_PRIORITY
, Thread.MAX_PRIORITY
public int getPriority()
Thread
s will have
Thread.MIN_PRIORITY
, Thread.NORM_PRIORITY
, Thread.MAX_PRIORITY
public Thread newThread(Runnable command)
newThread
in interface EDU.oswego.cs.dl.util.concurrent.ThreadFactory
command
- The Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |