Code example for FileLock

Methods: isValid

0
        } 
    } 
 
    public boolean isValid() 
    { 
        return lock.isValid();
    } 
 
    public void release() 
    { 
        try { 
            lock.release();
        } 
        catch (IOException e) {
            Throwables.propagate(e);
        } 
        finally { 
            Closeables.closeQuietly(channel);
        } 
    }