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 void
lock()
Wait the token and then lock the resource.void
unlock()
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 IOException
Description copied from interface:Locker
Wait the token and then lock the resource.- Specified by:
lock
in interfaceLocker
- Throws:
IOException
- if an error occurs while locking the resource
-
unlock
public void unlock() throws IOException
Description copied from interface:Locker
Unlock the resource.- Specified by:
unlock
in interfaceLocker
- Throws:
IOException
- if an error occurs while unlocking the resource
-
-