mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (4.3/Cloud)
73348: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud) 73162: Merged V4.1-BUG-FIX (4.1.10) to V4.2-BUG-FIX (4.2.3) 73054: Added LockDAO.releaseLockQuiet and used it for the callback's precautionary lock release - Fixes MNT-11507: JobLockService automatic refresh is triggering a retry under normal conditions - Prevents a DEBUG message from RetryingTransactionInterceptor when the normal condition is for the lock to no longer exist git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@74766 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -71,11 +71,22 @@ public interface LockDAO
|
||||
* @param lockToken the current lock token
|
||||
* @param optimistic <tt>true</tt> if the release attempt is enough even
|
||||
* if the number of released locks was incorrect.
|
||||
* @return <tt>true</tt> if the lock was successfully (and completely)
|
||||
* released or <tt>false</tt> if the lock was no longer valid
|
||||
* <b>and the method was being called optimistically.</b>
|
||||
* @return Returns <tt>true</tt> if all the required locks were
|
||||
* (still) held under the lock token and were
|
||||
* valid at the time of release, otherwise <tt>false</tt>
|
||||
* @throws LockAcquisitionException if the number of locks released was incorrect
|
||||
* and pessimistic release is requested.
|
||||
*/
|
||||
boolean releaseLock(QName lockQName, String lockToken, boolean optimistic);
|
||||
|
||||
/**
|
||||
* Release a lock without throwing any exceptions if the lock was not updated.
|
||||
*
|
||||
* @param lockQName the unique name of the lock to release
|
||||
* @param lockToken the current lock token
|
||||
* @return Returns <tt>true</tt> if all the required locks were
|
||||
* (still) held under the lock token and were
|
||||
* valid at the time of release, otherwise <tt>false</tt>
|
||||
*/
|
||||
boolean releaseLockQuiet(QName lockQName, String lockToken);
|
||||
}
|
||||
|
Reference in New Issue
Block a user