Class LockTimeoutException

All Implemented Interfaces:
Serializable

public final class LockTimeoutException extends LoomException
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 Details

    • LockTimeoutException

      public LockTimeoutException(String lockName, long timeoutMs)
      Creates a new LockTimeoutException.
      Parameters:
      lockName - the name of the lock that timed out (must not be null)
      timeoutMs - the timeout duration in milliseconds