|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadFactory
The ThreadFactory interface describes the responability of Factories
creating Thread for ThreadPool
s of the RunnableManager
Method Summary | |
---|---|
int |
getPriority()
Get the priority newly created Thread s will have |
boolean |
isDaemon()
Get the daemon mode created Thread s will have |
Thread |
newThread(Runnable command)
Create a new Thread for a Runnable command |
void |
setDaemon(boolean isDaemon)
Set the daemon mode of created Thread s should have |
void |
setPriority(int priority)
Set the priority newly created Thread s should have |
Method Detail |
---|
void setDaemon(boolean isDaemon)
Thread
s should have
isDaemon
- Whether new Thread
s should run as daemons.boolean isDaemon()
Thread
s will have
Thread
s should run as daemons.void setPriority(int priority)
Thread
s should have
priority
- One of Thread.MIN_PRIORITY
, Thread.NORM_PRIORITY
, Thread.MAX_PRIORITY
int getPriority()
Thread
s will have
Thread.MIN_PRIORITY
, Thread.NORM_PRIORITY
, Thread.MAX_PRIORITY
Thread newThread(Runnable command)
Runnable
command
newThread
in interface EDU.oswego.cs.dl.util.concurrent.ThreadFactory
command
- The Runnable
Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |