jcontrol.lang
Class ThreadExt
java.lang.Object
jcontrol.lang.ThreadExt
public class ThreadExt
- extends Object
Thread extensions for JControl.
For compatibility reasons not in Thread
.
Method Summary |
static void |
sleep(int millis)
Causes the currently executing thread to sleep (temporarily cease
execution) for the specified number of milliseconds. |
ThreadExt
public ThreadExt()
sleep
public static void sleep(int millis)
throws InterruptedException
- Causes the currently executing thread to sleep (temporarily cease
execution) for the specified number of milliseconds. The thread
does not lose ownership of any monitors.
- Parameters:
millis
- the length of time to sleep in milliseconds.
- Throws:
InterruptedException
- if another thread has interrupted
the current thread. The interrupted status of the
current thread is cleared when this exception is thrown.- See Also:
Object.notifyAll()