Interface Locker
-
- All Known Implementing Classes:
DistributedLocker
,ExecFileLock
,ExecLock
,TicketLocker
,ZooKeeperLocker
public interface Locker
This interface define an interface for the global execution locker.- Since:
- 1.1
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
lock()
Wait the token and then lock the resource.void
unlock()
Unlock the resource.
-
-
-
Method Detail
-
lock
void lock() throws IOException
Wait the token and then lock the resource.- Throws:
IOException
- if an error occurs while locking the resource
-
unlock
void unlock() throws IOException
Unlock the resource.- Throws:
IOException
- if an error occurs while unlocking the resource
-
-