Class LockableFile.LockFile
java.lang.Object
net.adoptopenjdk.icedteaweb.lockingfile.LockableFile.LockFile
- All Implemented Interfaces:
LockableFile.InterProcessLock
- Enclosing class:
LockableFile
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 Details
-
STALENESS_INTERVAL_IN_MILLIS
public static final long STALENESS_INTERVAL_IN_MILLIS- See Also:
-
lockFile
-
-
Constructor Details
-
LockFile
private LockFile()
-
-
Method Details
-
lock
- Specified by:
lockin interfaceLockableFile.InterProcessLock- Throws:
IOException
-
tryLock
- Specified by:
tryLockin interfaceLockableFile.InterProcessLock- Throws:
IOException
-
unlock
- Specified by:
unlockin interfaceLockableFile.InterProcessLock- Throws:
IOException
-
deleteStaleLockFile
- Throws:
IOException
-