Lines Matching refs:timeout
23 * the following code will timeout in 50 milliseconds if the {@link
29 * while this code will timeout in 50 seconds:
35 * Note however, that there is no guarantee that a particular timeout
234 * This is a convenience method that converts timeout arguments
241 * <pre> public synchronized Object poll(long timeout, TimeUnit unit) throws InterruptedException {
243 * unit.timedWait(this, timeout);
249 * @param timeout the maximum time to wait. If less than
254 public void timedWait(Object obj, long timeout)
256 if (timeout > 0) {
257 long ms = toMillis(timeout);
258 int ns = excessNanos(timeout, ms);
268 * @param timeout the maximum time to wait. If less than
273 public void timedJoin(Thread thread, long timeout)
275 if (timeout > 0) {
276 long ms = toMillis(timeout);
277 int ns = excessNanos(timeout, ms);
286 * @param timeout the minimum time to sleep. If less than
291 public void sleep(long timeout) throws InterruptedException {
292 if (timeout > 0) {
293 long ms = toMillis(timeout);
294 int ns = excessNanos(timeout, ms);