org.logicalcobwebs.concurrent
Class TimeoutException
InterruptedException
org.logicalcobwebs.concurrent.TimeoutException
public class TimeoutException
extends InterruptedException
Thrown by synchronization classes that report
timeouts via exceptions. The exception is treated
as a form (subclass) of InterruptedException. This both
simplifies handling, and conceptually reflects the fact that
timed-out operations are artificially interrupted by timers.
long | duration - The approximate time that the operation lasted before
this timeout exception was thrown.
|
TimeoutException(long time) - Constructs a TimeoutException with given duration value.
|
TimeoutException(long time, String message) - Constructs a TimeoutException with the
specified duration value and detail message.
|
duration
public final long duration
The approximate time that the operation lasted before
this timeout exception was thrown.
TimeoutException
public TimeoutException(long time)
Constructs a TimeoutException with given duration value.
TimeoutException
public TimeoutException(long time,
String message)
Constructs a TimeoutException with the
specified duration value and detail message.