Interface Locker


public interface Locker
Filesystem locker. Can be used to synchronize access to filesystem directories from different operating system processes.
Author:
igor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    lock(File directory)
    Acquires exclusive lock on specified directory.
  • Field Details

  • Method Details

    • lock

      Lock lock(File directory) throws IOException
      Acquires exclusive lock on specified directory. Most implementation will use marker file and will only work if all processes that require access to the directory use the same filename.
      Throws:
      IOException