Top Description Constructors
net.sf.ehcache.constructs.blocking

public Class LockTimeoutException

extends CacheException
Class Inheritance
Imports
net.sf.ehcache.CacheException

Indicates that a timeout has occured while attempting to obtain a lock using net.sf.ehcache.concurrent.ReadWriteLockSync#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.

Author
Greg Luck
Version
$Id: LockTimeoutException.java 10789 2018-04-26 02:08:13Z adahanne $

Constructor Summary

AccessConstructor and Description
public
LockTimeoutException()

Constructs a new runtime exception with null as its detail message.

public
LockTimeoutException(String
the detail message. The detail message is saved for later retrieval by the getMessage() method.
message
)

Constructs a new runtime exception with the specified detail message.

public
LockTimeoutException(String
the exception detail message
message
,
Throwable
the cause of the exception
cause
)

Constructor for the LockTimeoutException object.

Constructor Detail

LockTimeoutExceptionback to summary
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 initCause.

LockTimeoutExceptionback to summary
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 initCause.

Parameters
message:String

the detail message. The detail message is saved for later retrieval by the getMessage() method.

LockTimeoutExceptionback to summary
public LockTimeoutException(String message, Throwable cause)

Constructor for the LockTimeoutException object.

Parameters
message:String

the exception detail message

cause:Throwable

the cause of the exception