| Package | Description |
|---|---|
| java.lang | |
| java.lang.ref |
Provides reference-object classes, which support a limited degree of
interaction with the garbage collector.
|
| java.util.concurrent |
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TimeUnit.sleep(long timeout)
Performs a
Thread.sleep using
this time unit. |
void |
TimeUnit.timedWait(Object obj,
long timeout)
Performs a timed
Object.wait
using this time unit. |
Copyright © 2013 API Design. All Rights Reserved.