Code example for FileLock

Methods: channelrelease

0
 
        // must call super 
        super.releaseExclusiveReadLock(operations, file, exchange);
 
        if (lock != null) {
            Channel channel = lock.channel();
            try { 
                lock.release();
            } finally { 
                // must close channel first 
                IOHelper.close(channel, "while releasing exclusive read lock for file: " + lockFileName, LOG);
            } 
        } 
    } 
 
    private boolean sleep() { 
        LOG.trace("Exclusive read lock not granted. Sleeping for {} millis.", checkInterval);
        try { 
            Thread.sleep(checkInterval);
            return false; 
Connect your IDE to all the code out there  Get Codota for Java