public class FileLocker extends Object
Constructor and Description |
---|
FileLocker(File lockFile) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
static FileLocker |
getLock(File lockFile)
Attempts to grab the lock for the given file, returning a FileLock if
the lock has been created; otherwise it returns null
|
String |
toString() |
public FileLocker(File lockFile)
public static FileLocker getLock(File lockFile)
public void destroy()
Copyright © 2019 JBoss by Red Hat. All rights reserved.