|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.thread.WakeupManager.ThreadDesc
public static class 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 | |
---|---|
ThreadGroup |
getGroup()
The ThreadGroup the thread will be created in. |
int |
getPriority()
The priority the thread should be created with. |
boolean |
isDaemon()
Returns true if the the thread will be daemon
thread, returns false otherwise. |
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 |
---|
public ThreadGroup getGroup()
ThreadGroup
the thread will be created in.
ThreadGroup
the thread will be created in.public 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.public int getPriority()
public Thread thread(Runnable r)
r
, unstartedpublic String toString()
toString
in class Object
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |