Class LockableFile.LockFile

  • All Implemented Interfaces:
    LockableFile.InterProcessLock
    Enclosing class:
    LockableFile

    private class LockableFile.LockFile
    extends java.lang.Object
    implements LockableFile.InterProcessLock
    This is an alternative approach to locking a file system-wide.

    This is not recommended as there are claims that this is not reliable. Most likely there are issues with remote file systems but the claims do not go into detail.

    • Field Detail

      • STALENESS_INTERVAL_IN_MILLIS

        public static final long STALENESS_INTERVAL_IN_MILLIS
        See Also:
        Constant Field Values
      • lockFile

        private final java.io.File lockFile
    • Constructor Detail

      • LockFile

        private LockFile()
    • Method Detail

      • deleteStaleLockFile

        private void deleteStaleLockFile()
                                  throws java.io.IOException
        Throws:
        java.io.IOException