Interface Locker
-
- All Known Implementing Classes:
DistributedLocker,ExecFileLock,ExecLock,TicketLocker,ZooKeeperLocker
public interface LockerThis 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 voidlock()Wait the token and then lock the resource.voidunlock()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 IOExceptionUnlock the resource.- Throws:
IOException- if an error occurs while unlocking the resource
-
-