Code example for FileLock

Methods: isValid

0
        } 
 
    } 
 
    public boolean keepAlive() { 
        return lock != null && lock.isValid() && file.exists();
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java