Code example for FileLock

Methods: release

0
    @Override 
    public synchronized void close() { 
        if (closed == false) {
            LOG.debug("Closing session file: {}", path);
            try { 
                lock.release();
            } catch (IOException e) {
                WGLOG.warn(e, "W01005",
                        id,
                        path);
            } 
            try { 
                file.close();
            } catch (IOException e) {
                WGLOG.warn(e, "W01006",
                        id,
                        path);
            } 
        } 
        closed = true;
Contextual code suggestions in your IDE  Get Codota for Java