|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use TimeoutException | |
|---|---|
| java.util.concurrent | Utility classes commonly useful in concurrent programming. |
| Uses of TimeoutException in java.util.concurrent |
|---|
| Methods in java.util.concurrent that throw TimeoutException | ||
|---|---|---|
int |
CyclicBarrier.await(long timeout,
TimeUnit unit)
Waits until all parties have invoked await
on this barrier. |
|
V |
Exchanger.exchange(V x,
long timeout,
TimeUnit unit)
Waits for another thread to arrive at this exchange point (unless it is interrupted, or the specified waiting
time elapses),
and then transfers the given object to it, receiving its object
in return. |
|
V |
FutureTask.get(long timeout,
TimeUnit unit)
|
|
V |
Future.get(long timeout,
TimeUnit unit)
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available. |
|
|
ExecutorService.invokeAny(Collection<Callable<T>> tasks,
long timeout,
TimeUnit unit)
Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do before the given timeout elapses. |
|
|
AbstractExecutorService.invokeAny(Collection<Callable<T>> tasks,
long timeout,
TimeUnit unit)
|
|
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.