net.sf.ehcache.constructs.blocking

Class LockTimeoutException

public class LockTimeoutException extends CacheException

Indicates that a timeout has occured while attempting to obtain a lock using Mutex

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: LockTimeoutException.java 124 2006-06-11 13:44:17Z gregluck $

Author: Greg Luck

Constructor Summary
LockTimeoutException()
Constructs a new runtime exception with null as its detail message.
LockTimeoutException(String message)
Constructs a new runtime exception with the specified detail message.
LockTimeoutException(String message, Throwable initialCause)
Constructor for the LockTimeoutException object.

Constructor Detail

LockTimeoutException

public LockTimeoutException()
Constructs a new runtime exception with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to LockTimeoutException.

LockTimeoutException

public LockTimeoutException(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 to LockTimeoutException.

Parameters: message the detail message. The detail message is saved for later retrieval by the LockTimeoutException method.

LockTimeoutException

public LockTimeoutException(String message, Throwable initialCause)
Constructor for the LockTimeoutException object.

Parameters: message the exception detail message initialCause the cause of the exception which can later be retrieved with the LockTimeoutException method