Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Uses of Class
java.util.concurrent.TimeoutException

Packages that use TimeoutException
Package Description
java.util.concurrent Utility classes commonly useful in concurrent programming. 
javax.swing 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
 

Methods in java.util.concurrent that throw TimeoutException
Modifier and Type Method and Description
 int CyclicBarrier.await(long timeout, TimeUnit unit)
          Waits until all parties have invoked await on this barrier, or the specified waiting time elapses.
 int Phaser.awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit)
          Awaits the phase of the barrier to advance from the given phase value or the given timeout to elapse, throwing InterruptedException if interrupted while waiting, or returning immediately if the current phase of the barrier is not equal to the given phase value or this barrier is terminated.
 V Exchanger.exchange(V x, long timeout, TimeUnit unit)
          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.
 V ForkJoinTask.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.
 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.
<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.
 

Uses of TimeoutException in javax.swing
 

Methods in javax.swing that throw TimeoutException
Modifier and Type Method and Description
 T SwingWorker.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.
 


Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.