|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LockDAO
DAO services for alf_lock and related tables
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 remain
LockAcquisitionException
- 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 token
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |