Package io.hawt.util

Class FileLocker


  • public class FileLocker
    extends Object
    A simple API to a file lock
    • 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()