public final native void wait (long timeout) throws InterruptedException

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

In all respects, this method behaves as if wait(timeout, 0) had been called. See the specification of the wait(long, int) method for details.

Parameters:
timeout    the maximum time to wait, in milliseconds

Exceptions:
IllegalArgumentException    if the value of timeout is negative
IllegalMonitorStateException    if the current thread is not the owner of the object's monitor
InterruptedException    if any thread interrupted the current thread before or while the current thread was waiting. The interrupted status of the current thread is cleared when this exception is thrown.

See also:
notify(), notifyAll(), wait(), wait(long, int)