Class TimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.util.concurrent.TimeoutException
Thrown by
Future.get(long, TimeUnit) when the work has not finished in time.-
Constructor Summary
ConstructorsConstructorDescriptionAn exception with no message.TimeoutException(String message) An exception withmessage. -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TimeoutException
public TimeoutException()An exception with no message. -
TimeoutException
An exception withmessage.- Parameters:
message- the detail message
-