Code example for FileLock

Methods: release

0
 
  // Release 
  public static void crossProcessLockRelease() { 
    if (fileLock != null) {
      try { 
        fileLock.release();
        fileLock = null;
      } catch (final IOException e) {
        throw new TestUtilRuntimeException(e);
      } 
    } 
  } 
 
  private static File lockTempDir = new File(System.getProperty("java.io.tmpdir") + File.separator + "locks");
  static { 
    lockTempDir.mkdirs();
  } 
  private static FileLock fileLock = null;
 
  static {