org.apache.ivy.plugins.lock

Class FileBasedLockStrategy.NIOFileLocker

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

Locks a file using the FileLock mechanism.
Constructor Summary
NIOFileLocker(boolean debugLocking)
Method Summary
booleantryLock(File file)
voidunlock(File file)

Constructor Detail

NIOFileLocker

public NIOFileLocker(boolean debugLocking)

Method Detail

tryLock

public boolean tryLock(File file)

unlock

public void unlock(File file)