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 Details

    • FileLocker

      public FileLocker(File lockFile)
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • destroy

      public void destroy()