Name
TimeoutException
Synopsis
An
exception
of this type is thrown by timed methods to indicate that the
specified timeout has elapsed. Other timed methods are able to
indicate their timeout status in a boolean
or
other return value.
Figure 16-95. java.util.concurrent.TimeoutException
public class TimeoutException extends Exception { // Public Constructors public TimeoutException( ); public TimeoutException(String message); }
Thrown By
AbstractExecutorService.invokeAny( )
,
CyclicBarrier.await( )
,
Exchanger.exchange( )
,
ExecutorService.invokeAny( )
, Future.get(
)
, FutureTask.get( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.