|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.util.Monitor
public class Monitor
Helper class for wait-notify mechanism.
Method Summary | |
---|---|
static boolean |
putSleep()
Same as putSleep(int timeout) with timeout = 0 (timeout disabled). |
static boolean |
putSleep(int timeout)
Same as putSleep(Object monitor, int timeout), but uses internal static monitor object. |
static boolean |
putSleep(java.lang.Object monitor)
Same as putSleep(Object monitor, int timeout) with timeout = 0 (timeout disabled). |
static boolean |
putSleep(java.lang.Object monitor,
int timeout)
Put the current thread in a wait state until wakeUp() is called or timeout ( in ms ) expires. |
static void |
wakeUp()
Wake up all threads waiting for the internal static monitor lock. |
static void |
wakeUp(java.lang.Object monitor)
Wake up all threads waiting for the given object's lock. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean putSleep(int timeout)
public static boolean putSleep(java.lang.Object monitor, int timeout)
public static boolean putSleep(java.lang.Object monitor)
public static boolean putSleep()
public static void wakeUp(java.lang.Object monitor)
public static void wakeUp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |