|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.plugins.lock.AbstractLockStrategy
org.apache.ivy.plugins.lock.FileBasedLockStrategy
public abstract class FileBasedLockStrategy
Nested Class Summary | |
---|---|
static class |
FileBasedLockStrategy.CreateFileLocker
"locks" a file by creating it if it doesn't exist, relying on the File.createNewFile() atomicity. |
static interface |
FileBasedLockStrategy.FileLocker
|
static class |
FileBasedLockStrategy.NIOFileLocker
Locks a file using the FileLock mechanism. |
Constructor Summary | |
---|---|
protected |
FileBasedLockStrategy()
|
protected |
FileBasedLockStrategy(boolean debugLocking)
|
protected |
FileBasedLockStrategy(FileBasedLockStrategy.FileLocker locker,
boolean debugLocking)
|
Method Summary | |
---|---|
protected boolean |
acquireLock(java.io.File file)
|
protected void |
releaseLock(java.io.File file)
|
Methods inherited from class org.apache.ivy.plugins.lock.AbstractLockStrategy |
---|
getName, isDebugLocking, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.ivy.plugins.lock.LockStrategy |
---|
lockArtifact, unlockArtifact |
Constructor Detail |
---|
protected FileBasedLockStrategy()
protected FileBasedLockStrategy(boolean debugLocking)
protected FileBasedLockStrategy(FileBasedLockStrategy.FileLocker locker, boolean debugLocking)
Method Detail |
---|
protected boolean acquireLock(java.io.File file) throws java.lang.InterruptedException
java.lang.InterruptedException
protected void releaseLock(java.io.File file)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |