Class LockTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.loomcache.common.exception.LoomException
com.loomcache.common.exception.LockTimeoutException
- All Implemented Interfaces:
Serializable
Thrown when lock acquisition times out.
This exception is raised when attempting to acquire a distributed lock but the timeout period expires before the lock can be acquired. This typically indicates contention for the lock or that the lock holder has crashed.
Clients may retry lock acquisition or implement alternative strategies (e.g., timeout with escalation, fallback operations).
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLockTimeoutException(String lockName, long timeoutMs) Creates a new LockTimeoutException. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LockTimeoutException
Creates a new LockTimeoutException.- Parameters:
lockName- the name of the lock that timed out (must not be null)timeoutMs- the timeout duration in milliseconds
-