Package io.hawt.util
Class FileLocker
- java.lang.Object
-
- io.hawt.util.FileLocker
-
public class FileLocker extends Object
A simple API to a file lock
-
-
Constructor Summary
Constructors Constructor Description FileLocker(File lockFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()static FileLockergetLock(File lockFile)Attempts to grab the lock for the given file, returning a FileLock if the lock has been created; otherwise it returns nullStringtoString()
-
-
-
Constructor Detail
-
FileLocker
public FileLocker(File lockFile)
-
-
Method Detail
-
getLock
public static FileLocker getLock(File lockFile)
Attempts to grab the lock for the given file, returning a FileLock if the lock has been created; otherwise it returns null
-
destroy
public void destroy()
-
-