public interface LockDAO
| Modifier and Type | Method and Description |
|---|---|
void |
getLock(org.alfresco.service.namespace.QName lockQName,
java.lang.String lockToken,
long timeToLive)
Aquire a given exclusive lock, assigning it (and any implicitly shared locks) a
timeout.
|
void |
refreshLock(org.alfresco.service.namespace.QName lockQName,
java.lang.String lockToken,
long timeToLive)
Refresh a held lock.
|
void |
releaseLock(org.alfresco.service.namespace.QName lockQName,
java.lang.String lockToken)
Release a lock.
|
void getLock(org.alfresco.service.namespace.QName lockQName,
java.lang.String lockToken,
long timeToLive)
A lock can be re-taken if it has expired and if the lock token has not changed
lockQName - the unique name of the lock to acquirelockToken - the potential lock token (max 36 chars)timeToLive - the time (in milliseconds) that the lock must remainLockAcquisitionException - on failurevoid refreshLock(org.alfresco.service.namespace.QName lockQName,
java.lang.String lockToken,
long timeToLive)
lockQName - the unique name of the lock to updatelockToken - the lock token for the lock heldtimeToLive - the new time to live (in milliseconds)LockAcquisitionException - on failurevoid releaseLock(org.alfresco.service.namespace.QName lockQName,
java.lang.String lockToken)
Note: Failure to release a lock due to a exception condition is dealt with by passing the exception out.
lockQName - the unique name of the lock to releaselockToken - the current lock tokenCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.