public class FileLocker
extends Object
A simple API to a file lock
-
Constructor Summary
Constructors
-
Method Summary
void
Attempts to grab the lock for the given file, returning a FileLock if
the lock has been created; otherwise it returns null
-
Constructor Details
-
FileLocker
public FileLocker(File lockFile)
-
Method Details
-
getLock
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()