Class ExecFileLock
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.util.locker.ExecFileLock
-
-
Constructor Summary
Constructors Constructor Description ExecFileLock(File lockFile)Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlock()Wait the token and then lock the resource.voidunlock()Unlock the resource.
-
-
-
Constructor Detail
-
ExecFileLock
public ExecFileLock(File lockFile)
Public constructor.- Parameters:
lockFile- lock file to use
-
-
Method Detail
-
lock
public void lock() throws IOExceptionDescription copied from interface:LockerWait the token and then lock the resource.- Specified by:
lockin interfaceLocker- Throws:
IOException- if an error occurs while locking the resource
-
unlock
public void unlock() throws IOExceptionDescription copied from interface:LockerUnlock the resource.- Specified by:
unlockin interfaceLocker- Throws:
IOException- if an error occurs while unlocking the resource
-
-