Interface LockRepository
-
- All Known Implementing Classes:
LockRepositoryImpl
public interface LockRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanlockTask(java.lang.String key, java.lang.String method, long time, java.lang.String server)Acquire task lock from database
-
-
-
Method Detail
-
lockTask
boolean lockTask(java.lang.String key, java.lang.String method, long time, java.lang.String server) throws DatabaseExceptionAcquire task lock from database- Parameters:
key- that identifies taskmethod- class and method where task was runningtime- to lock taskserver- identification (server hostname)- Returns:
- true if can acquire lock or false if not
- Throws:
DatabaseException- that was thrown when do not have database configured
-
-