Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

Utilities.unlockFile

Unlocks a file from exclusive use by this thread.

Syntax

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() and unlockFile() provide a semaphore primitive that is useful in a cluster environment.

Returns

Returns true if the specified file was successfully unlocked; otherwise, returns false. Reasons for failure include specifying a file that was not locked.

See Also

lockFile

 

  Home > Contents > Index >

Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.