public class LockFile
extends java.lang.Object
| Constructor and Description |
|---|
LockFile() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acquireLock()
Acquires the lock by checking whether a lock file already exists,
and if not, by creating one with the current system time as
content.
|
void |
releaseLock()
Releases the lock by deleting the lock file, if present.
|