|
||||||||||
| 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 ThreadPools of the RunnableManager
| Method Summary | |
|---|---|
int |
getPriority()
Get the priority newly created Threads will have |
boolean |
isDaemon()
Get the daemon mode created Threads will have |
Thread |
newThread(Runnable command)
Create a new Thread for a Runnable command |
void |
setDaemon(boolean isDaemon)
Set the daemon mode of created Threads should have |
void |
setPriority(int priority)
Set the priority newly created Threads should have |
| Method Detail |
|---|
void setDaemon(boolean isDaemon)
Threads should have
isDaemon - Whether new Threads should run as daemons.boolean isDaemon()
Threads will have
Threads should run as daemons.void setPriority(int priority)
Threads should have
priority - One of Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, Thread.MAX_PRIORITYint getPriority()
Threads will have
Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, Thread.MAX_PRIORITYThread newThread(Runnable command)
Runnable command
newThread in interface EDU.oswego.cs.dl.util.concurrent.ThreadFactorycommand - The Runnable
Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||