|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.jini.thread.WakeupManager.ThreadDesc
Description of a future thread.
WakeupManager.schedule(long, java.lang.Runnable),
WakeupManager.WakeupManager(WakeupManager.ThreadDesc)| Constructor Summary | |
WakeupManager.ThreadDesc()
Equivalent to ThreadDesc(null, false) |
|
WakeupManager.ThreadDesc(ThreadGroup group,
boolean daemon)
Equivalent to ThreadDesc(group, deamon, Thread.NORM_PRIORITY) |
|
WakeupManager.ThreadDesc(ThreadGroup group,
boolean daemon,
int priority)
Describe a future thread that will be created in the given group, deamon status, and priority. |
|
| Method Summary | |
protected ThreadGroup |
getGroup()
The ThreadGroup the thread will be created in. |
protected int |
getPriority()
The priority the thread should be created with. |
protected boolean |
isDaemon()
Returns true if the the thread will be daemon
thread, returns false otherwise. |
protected Thread |
thread(Runnable r)
Create a thread for the given runnable based on the values in this object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WakeupManager.ThreadDesc()
ThreadDesc(null, false)
public WakeupManager.ThreadDesc(ThreadGroup group,
boolean daemon)
ThreadDesc(group, deamon, Thread.NORM_PRIORITY)
public WakeupManager.ThreadDesc(ThreadGroup group,
boolean daemon,
int priority)
group - The group to be created in. If null,
the thread will be created in the default group.daemon - The thread will be a daemon thread if this is
true.priority - The thread's priority.
IllegalArgumentException - if priority is not
in between Thread.MIN_PRIORITY and
Thread.MAX_PRIORITY| Method Detail |
protected ThreadGroup getGroup()
ThreadGroup the thread will be created in.
ThreadGroup the thread will be created in.protected boolean isDaemon()
true if the the thread will be daemon
thread, returns false otherwise.
true if the the thread will be daemon
thread, returns false otherwise.protected int getPriority()
protected Thread thread(Runnable r)
r, unstartedpublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||