Interface Locker


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

      Fields 
      Modifier and Type Field Description
      static java.lang.String LOCK_FILE  
    • Method Detail

      • lock

        Lock lock​(java.io.File directory)
           throws java.io.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:
        java.io.IOException