public class FileLock extends Object
| Constructor and Description |
|---|
FileLock() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
lock(String dir,
String file) |
void |
releaseLock()
Release a possibly existing lock.
|
protected static final Log LOG
public boolean lock(String dir, String file) throws IOException
dir - directory for file lockfile - lock file nameIOException - if lock couldn't be donepublic void releaseLock()
Copyright © 2012–2018. All rights reserved.