|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.almendra.commons.threads.ThreadUtility
public class ThreadUtility
Contains several helper methods to deal with threads. The idea is to define a single place
to deal with InterruptedException
uniformingly avoiding code repretition.
Method Summary | |
---|---|
static void |
sleep(long millis)
Make current thread sleep for millis milliseconds. |
static void |
wait(java.lang.Object object)
CollectionBlock the thread that owns object . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void sleep(long millis)
millis
milliseconds.
millis
- the number of milliseconds to make the current thread sleeppublic static void wait(java.lang.Object object)
object
.
object
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |