org.apache.maven.index.fs
Interface Locker
public interface Locker
Filesystem locker. Can be used to synchronize access to filesystem directories from different operating system
processes.
- Author:
- igor
Method Summary |
Lock |
lock(File directory)
Acquires exclusive lock on specified directory. |
LOCK_FILE
static final String LOCK_FILE
- See Also:
- Constant Field Values
lock
Lock lock(File directory)
throws IOException
- Acquires exclusive lock on specified directory. Most implementation will use marker file and will only work if
all processes that require access to the directory use the same filename.
- Throws:
IOException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.