Lines Matching refs:timeout
107 * one becomes available or the given timeout period expires.
110 * timeout as if by invoking the {@link Object#wait(long)} method.
112 * @param timeout If positive, block for up to <code>timeout</code>
117 * timeout period, otherwise <code>null</code>
120 * If the value of the timeout argument is negative
123 * If the timeout wait is interrupted
125 public Reference<? extends T> remove(long timeout)
128 if (timeout < 0) {
129 throw new IllegalArgumentException("Negative timeout value");
135 lock.wait(timeout);
138 if (timeout != 0) return null;