Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
Utilities.unlockFile
Unlocks a file from exclusive use by this thread.
Syntax
public static boolean unlockFile(String file)Parameters
file
- File name to unlock. This must be a file specification that is valid for the operating system.
Description
The
unlockFile
method unlocks a file from exclusive use by this thread.lockFile()
andunlockFile()
provide a semaphore primitive that is useful in a cluster environment.Returns
Returns
true
if the specified file was successfully unlocked; otherwise, returnsfalse
. Reasons for failure include specifying a file that was not locked.See Also
Home > Contents > Index > Oracle JAVA Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.