Class LockTimeoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sf.ehcache.CacheException
-
- net.sf.ehcache.constructs.blocking.LockTimeoutException
-
- All Implemented Interfaces:
java.io.Serializable
public class LockTimeoutException extends CacheException
Indicates that a timeout has occured while attempting to obtain a lock usingReadWriteLockSync.tryLock(net.sf.ehcache.concurrent.LockType, long)This is a normal runtime exception which should be handled by calling code. It is possible that simply reattempting to obtain the lock may succeed. Timeouts are often caused by overloaded resources.
The frequency of these Exceptions may be reduced by increasing the timeout if appropriate.
- Version:
- $Id$
- Author:
- Greg Luck
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LockTimeoutException()Constructs a new runtime exception withnullas its detail message.LockTimeoutException(java.lang.String message)Constructs a new runtime exception with the specified detail message.LockTimeoutException(java.lang.String message, java.lang.Throwable cause)Constructor for the LockTimeoutException object.
-
-
-
Constructor Detail
-
LockTimeoutException
public LockTimeoutException()
Constructs a new runtime exception withnullas its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).
-
LockTimeoutException
public LockTimeoutException(java.lang.String message)
Constructs a new runtime exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.
-
LockTimeoutException
public LockTimeoutException(java.lang.String message, java.lang.Throwable cause)Constructor for the LockTimeoutException object.- Parameters:
message- the exception detail messagecause- the cause of the exception
-
-