Package 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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOCK_FILE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Lock
lock(java.io.File directory)
Acquires exclusive lock on specified directory.
-
-
-
Field Detail
-
LOCK_FILE
static final java.lang.String LOCK_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
lock
Lock lock(java.io.File directory) throws java.io.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:
java.io.IOException
-
-