Class SyncContext.FailedToAcquireLockException

All Implemented Interfaces:
Serializable
Enclosing interface:
SyncContext

Specific exception thrown by SyncContext.acquire(Collection, Collection) method when it cannot acquire the lock.
Since:
1.9.25
See Also:
  • Constructor Details

    • FailedToAcquireLockException

      public FailedToAcquireLockException(boolean shared, String message)
      Constructor.
      Parameters:
      shared - true if the lock that could not be acquired was shared, false if exclusive.
      message - The detail message, may be null.
  • Method Details

    • isShared

      public boolean isShared()
      Returns true for shared and false for exclusive sync contexts.
      Returns:
      true if the lock that could not be acquired was shared, false if exclusive.