org.apache.ivy.plugins.lock

Class FileBasedLockStrategy.CreateFileLocker

public static class FileBasedLockStrategy.CreateFileLocker extends Object implements FileBasedLockStrategy.FileLocker

"locks" a file by creating it if it doesn't exist, relying on the File#createNewFile() atomicity.
Constructor Summary
CreateFileLocker(boolean debugLocking)
Method Summary
booleantryLock(File file)
voidunlock(File file)

Constructor Detail

CreateFileLocker

public CreateFileLocker(boolean debugLocking)

Method Detail

tryLock

public boolean tryLock(File file)

unlock

public void unlock(File file)