Code example for FileLock

Methods: isValid

//            } 
//        } 
        trace("lockImpl(): f.deleteOnExit()"); 
        isValid = fl != null && fl.isValid();
        trace("lockImpl():isValid(): " + isValid);
        return isValid;
     * Tries to release any valid lock held upon this object's lock file using 
     * this object's {@link #fl FileLock} attribute. 
     * @return true if a valid lock is released, else false 
     * @throws Exception if na error occurs while attempting to release the lock 
    protected boolean releaseImpl() throws Exception { 
Connect your IDE to all the code out there  Get Codota for Java