Package | Description |
---|---|
ej.bon | |
java.lang | |
java.lang.ref |
Modifier and Type | Method and Description |
---|---|
EnqueuedWeakReference<T> |
ReferenceQueue.remove()
Queries the queue, returns and removes the first element of the queue.
|
Modifier and Type | Method and Description |
---|---|
void |
Thread.join()
Waits for this thread to die.
|
void |
Thread.join(long millis)
Waits at most
millis milliseconds for this thread to die. |
void |
Thread.join(long millis,
int nanos)
Waits at most
millis milliseconds plus nanos nanoseconds for this thread to die. |
static void |
Thread.sleep(long millis)
Causes the currently executing thread to sleep (temporarily cease execution) for the specified
number of milliseconds, subject to the precision and accuracy of system timers and schedulers.
|
static void |
Thread.sleep(long millis,
int nanos)
Causes the currently executing thread to sleep (temporarily cease execution) for the specified
number of milliseconds plus the specified number of nanoseconds, subject to the precision and
accuracy of system timers and schedulers.
|
void |
Object.wait()
Causes the current thread to wait until another thread invokes the
Object.notify() method or the Object.notifyAll() method for
this object. |
void |
Object.wait(long timeout)
Causes the current thread to wait until either another thread invokes the
Object.notify() method or the Object.notifyAll() method for
this object, or a specified amount of time has elapsed. |
void |
Object.wait(long timeout,
int nanos)
Causes the current thread to wait until another thread invokes the
Object.notify() method or the Object.notifyAll() method for
this object, or some other thread interrupts the current thread, or a certain amount of real time
has elapsed. |
Modifier and Type | Method and Description |
---|---|
Reference<? extends T> |
ReferenceQueue.remove()
Removes the next reference object in this queue, blocking until one becomes available.
|
Reference<? extends T> |
ReferenceQueue.remove(long timeout)
Removes the next reference object in this queue, blocking until either one becomes available or
the given timeout period expires.
|