Code example for FileLock

Methods: release

0
      // Mainly to catch FileLockInterruptionExceptions (see LOGBACK-875) 
      resilientFOS.postIOFailure(e);
    } 
    finally { 
      if (fileLock != null) {
        fileLock.release();
      } 
 
      // Re-interrupt if we started in an interrupted state (see LOGBACK-875) 
      if (interrupted) {
        Thread.currentThread().interrupt();
      } 
    } 
  } 
 
  @Override 
  protected void writeOut(E event) throws IOException {
    if (prudent) {
      safeWrite(event);
    } else {