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