Code example for FileLock

Methods: release

0
    } 
 
    @Override 
    protected void stopService() throws Exception {
 
        lock.release();
        lockChannel.close();
        lockFile.delete();
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java