Class LuceneLockManagerDB
java.lang.Object
fr.paris.lutece.plugins.forms.service.lock.LuceneLockManagerDB
- All Implemented Interfaces:
LuceneLockManager
-
Method Summary
Modifier and TypeMethodDescriptionacquireLock(String indexName, long timeoutMs) acquire a lockvoidclose()reset all the lockrefreshLock(LockResult lockResult, long timeoutMs) voidreleaseLock(LockResult lockResult) release a lock
-
Method Details
-
acquireLock
Description copied from interface:LuceneLockManageracquire a lock- Specified by:
acquireLockin interfaceLuceneLockManager- Parameters:
indexName- the index nametimeoutMs- the timout in ms- Returns:
- LockResult
- Throws:
LockException
-
releaseLock
Description copied from interface:LuceneLockManagerrelease a lock- Specified by:
releaseLockin interfaceLuceneLockManager- Parameters:
lockResult- the LockResult- Throws:
LockException
-
refreshLock
- Specified by:
refreshLockin interfaceLuceneLockManager- Parameters:
lockResult- the LockResulttimeoutMs- the timout in ms to extend from the current time- Returns:
- LockResult
- Throws:
LockException
-
close
public void close()Description copied from interface:LuceneLockManagerreset all the lock- Specified by:
closein interfaceLuceneLockManager
-