Class ExclusiveLockManager


  • public class ExclusiveLockManager
    extends Object
    A lock manager for exclusive locks.
    Author:
    Arjohn Kampman, James Leigh
    • Constructor Detail

      • ExclusiveLockManager

        public ExclusiveLockManager()
        Creates an ExclusiveLockManager.
      • ExclusiveLockManager

        public ExclusiveLockManager​(boolean trackLocks)
        Creates an ExclusiveLockManager.
        Parameters:
        trackLocks - If create stack traces should be logged
    • Method Detail

      • tryExclusiveLock

        public Lock tryExclusiveLock()
        Gets the exclusive lock, if available. This method will return null if the exclusive lock is not immediately available.