org.logicalcobwebs.concurrent
类 TimeoutException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.InterruptedException
              继承者 org.logicalcobwebs.concurrent.TimeoutException
所有已实现的接口:
Serializable

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.
 
方法摘要
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

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.



Copyright © 2014. All rights reserved.