FileBasedLockStrategy.NIOFileLocker
Date: 2013-01-10

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.ivy.plugins.lock
Class FileBasedLockStrategy.NIOFileLocker

    java.lang.Object
      org.apache.ivy.plugins.lock.FileBasedLockStrategy.NIOFileLocker

All Implemented Interfaces:
  FileBasedLockStrategy.FileLocker

Enclosing class:
  FileBasedLockStrategy

    public static class FileBasedLockStrategy.NIOFileLocker

extends java.lang.Object
implements FileBasedLockStrategy.FileLocker

Locks a file using the `FileLock` mechanism.

Constructor Summary
`FileBasedLockStrategy.NIOFileLocker(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

### FileBasedLockStrategy.NIOFileLocker

    public FileBasedLockStrategy.NIOFileLocker(boolean debugLocking)

Method Detail

### tryLock

    public boolean tryLock(java.io.File file)

  Specified by:
    `tryLock` in interface `FileBasedLockStrategy.FileLocker`

### unlock

    public void unlock(java.io.File file)

  Specified by:
    `unlock` in interface `FileBasedLockStrategy.FileLocker`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD