Uses of Class
java.util.concurrent.TimeoutException
Package
Description
Utility classes commonly useful in concurrent programming.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
-
Uses of TimeoutException in java.util.concurrent
Modifier and TypeMethodDescriptionint
Waits until all parties have invokedawait
on this barrier, or the specified waiting time elapses.int
Phaser.awaitAdvanceInterruptibly
(int phase, long timeout, TimeUnit unit) Awaits the phase of this phaser to advance from the given phase value or the given timeout to elapse, throwingInterruptedException
if interrupted while waiting, or returning immediately if the current phase is not equal to the given phase value or this phaser is terminated.Waits for another thread to arrive at this exchange point (unless the current thread is interrupted or the specified waiting time elapses), and then transfers the given object to it, receiving its object in return.Waits if necessary for at most the given time for this future to complete, and then returns its result, if available.final V
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.<T> T
AbstractExecutorService.invokeAny
(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) <T> T
ExecutorService.invokeAny
(Collection<? extends 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.Wait for all subtasks started in this task scope to finish or the task scope to shut down, up to the given deadline.Wait for a subtask started in this task scope to complete successfullyPREVIEW or all subtasks to complete, up to the given deadline. -
Uses of TimeoutException in javax.swing