equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
428 * ... // Perform action appropriate to condition or timeout |
428 * ... // Perform action appropriate to condition or timeout |
429 * } |
429 * } |
430 * }</pre> |
430 * }</pre> |
431 * |
431 * |
432 * @param timeoutMillis the maximum time to wait, in milliseconds |
432 * @param timeoutMillis the maximum time to wait, in milliseconds |
433 * @param nanos additional time, in nanoseconds, in the range range 0-999999 inclusive |
433 * @param nanos additional time, in nanoseconds, in the range 0-999999 inclusive |
434 * @throws IllegalArgumentException if {@code timeoutMillis} is negative, |
434 * @throws IllegalArgumentException if {@code timeoutMillis} is negative, |
435 * or if the value of {@code nanos} is out of range |
435 * or if the value of {@code nanos} is out of range |
436 * @throws IllegalMonitorStateException if the current thread is not |
436 * @throws IllegalMonitorStateException if the current thread is not |
437 * the owner of the object's monitor |
437 * the owner of the object's monitor |
438 * @throws InterruptedException if any thread interrupted the current thread before or |
438 * @throws InterruptedException if any thread interrupted the current thread before or |