Class FileBasedLockStrategy

java.lang.Object
org.apache.ivy.plugins.lock.AbstractLockStrategy
org.apache.ivy.plugins.lock.FileBasedLockStrategy
All Implemented Interfaces:
LockStrategy
Direct Known Subclasses:
ArtifactLockStrategy

public abstract class FileBasedLockStrategy extends AbstractLockStrategy
  • Constructor Details

    • FileBasedLockStrategy

      protected FileBasedLockStrategy()
    • FileBasedLockStrategy

      protected FileBasedLockStrategy(boolean debugLocking)
    • FileBasedLockStrategy

      protected FileBasedLockStrategy(FileBasedLockStrategy.FileLocker locker, boolean debugLocking)
  • Method Details

    • acquireLock

      protected boolean acquireLock(File file) throws InterruptedException
      Throws:
      InterruptedException
    • releaseLock

      protected void releaseLock(File file)
    • getCurrentLockHolderNames

      protected String getCurrentLockHolderNames(File file)
      Return a string naming the threads which currently hold this lock.
      Parameters:
      file - File
      Returns:
      String