Package com.logicaldoc.core.lock
Class LockManager
java.lang.Object
com.logicaldoc.core.lock.LockManager
Central class to manage locks
- Since:
- 6.5
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanAcquire a lock of a given name and for a given transaction.Gets all the transaction ids associated to the locksvoidReleases a previously acquired lock.
- 
Constructor Details- 
LockManagerpublic LockManager()
 
- 
- 
Method Details- 
getAllTransactionsGets all the transaction ids associated to the locks- Returns:
- the lists of transactions
 
- 
getAcquire a lock of a given name and for a given transaction.- Parameters:
- lockName- Name of the lock
- transactionId- Id of the transaction
- Returns:
- true only if the lock was acquired
 
- 
releaseReleases a previously acquired lock.- Parameters:
- lockName- The lock name
- transactionId- The transaction ID
- Throws:
- PersistenceException
 
 
-