org.apache.ivy.plugins.lock
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
Method Summary |
protected boolean |
acquireLock(java.io.File file)
|
protected java.lang.String |
getCurrentLockHolderNames(java.io.File file)
Return a string naming the threads which currently hold this lock. |
protected void |
releaseLock(java.io.File file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileBasedLockStrategy
protected FileBasedLockStrategy()
FileBasedLockStrategy
protected FileBasedLockStrategy(boolean debugLocking)
FileBasedLockStrategy
protected FileBasedLockStrategy(FileBasedLockStrategy.FileLocker locker,
boolean debugLocking)
acquireLock
protected boolean acquireLock(java.io.File file)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
releaseLock
protected void releaseLock(java.io.File file)
getCurrentLockHolderNames
protected java.lang.String getCurrentLockHolderNames(java.io.File file)
- Return a string naming the threads which currently hold this lock.