|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ivy.plugins.lock.FileBasedLockStrategy.CreateFileLocker
public static class FileBasedLockStrategy.CreateFileLocker
"locks" a file by creating it if it doesn't exist, relying on the
File.createNewFile() atomicity.
| Constructor Summary | |
|---|---|
FileBasedLockStrategy.CreateFileLocker(boolean debugLocking)
|
|
| Method Summary | |
|---|---|
boolean |
tryLock(java.io.File file)
|
void |
unlock(java.io.File file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileBasedLockStrategy.CreateFileLocker(boolean debugLocking)
| Method Detail |
|---|
public boolean tryLock(java.io.File file)
tryLock in interface FileBasedLockStrategy.FileLockerpublic void unlock(java.io.File file)
unlock in interface FileBasedLockStrategy.FileLocker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||