public class Monitor
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.
|
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()