Class ExecFileLock
java.lang.Object
fr.ens.biologie.genomique.eoulsan.util.locker.ExecFileLock
- All Implemented Interfaces:
Locker
This class define a lock file.
- Since:
- 1.1
- Author:
- Laurent Jourdren
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExecFileLock
Public constructor.- Parameters:
lockFile- lock file to use
-
-
Method Details
-
lock
Description 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
Description copied from interface:LockerUnlock the resource.- Specified by:
unlockin interfaceLocker- Throws:
IOException- if an error occurs while unlocking the resource
-