Code example for FileLock

Methods: release

0
            LOG.debug(MessageFormat.format(
                    "Starting to release lock for \"{0}\" ({1})", 
                    target,
                    lockFile));
        } 
        lockEntity.release();
        fd.close();
        if (lockFile.delete() == false) {
            LOG.warn(MessageFormat.format(
                    "Failed to delete lock file for \"{0}\" ({1})", 
                    target,
                    lockFile));
        } 
    } 
 
    @Override 
    public String toString() {
        return MessageFormat.format(
                "{0}({1}@{2})", 
                getClass().getSimpleName(),
Connect your IDE to all the code out there  Get Codota for Java