public class LockFile extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases the lock file.
|
static LockFile |
lock(Path lockFile)
Creates a lock file.
|
public static LockFile lock(Path lockFile) throws IOException
lockFile - the path of the lock fileLockFile that can be released laterIOException - if creating the lock file failspublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2019. All rights reserved.