Defines a lock associated with an owner and a portal entity that
guarantees some degree of exclusive access to the entity, depending on
lockType and expirationTime.
See IEntityLockService for the rules governing lock assignment
and a code example.
author: Dan Ellentuck version: $Revision: 34757 $ See Also:org.jasig.portal.concurrency.IEntityLockService
Method Summary
public void
convert(int newType) Attempts to change the lockType of this lock to
newType.
public void
convert(int newType, int newDuration) Attempts to change the lockType of this lock to
newType.
Attempts to change the lockType of this lock to
newType. The expirationTime is renewed.
Parameters: newType - int exception: org.jasig.portal.concurrency.LockingException - - if the conversion fails.
Attempts to change the lockType of this lock to
newType. The expirationTime is extended
newDuration seconds.
Parameters: newType - int Parameters: newDuration - int exception: org.jasig.portal.concurrency.LockingException - - if the conversion fails.