public interface ResourceLockManager
ResourceLockManagerFactory
.Modifier and Type | Method and Description |
---|---|
boolean |
hasLock(long resourceId)
Checks to see if the given lock is currently held, which means either:
it has been obtained but not released (it is open)
It has been obtained, modified, and then released, but a save operation has not occurred.
|
boolean |
isLockModified(long resourceId)
Returns true if the lock has been obtained and updated
|
boolean |
isLockOpen(long resourceId)
Returns true if the lock has been obtained and not released
|
long |
newResourceId()
Creates and obtains the lock for a new resource id
|
void |
releaseLock(long resourceId)
Designer elements should call this function when they are done with the resource that they obtained a lock for.
|
boolean |
requestLock(long resourceId)
Requests the lock for the given resource.
|
boolean |
requestLockQuietly(long resourceId)
Just like requestLock, except that if the lock isn't obtained, no error message is displayed.
|
void |
synchLocks()
Attempts to re-obtain all locks that this resource lock manager currently has.
|
boolean |
updateLock(long resourceId)
Designer elements should call this function when they have actually updated the resource with the given ID.
|
boolean requestLock(long resourceId)
resourceId
- boolean requestLockQuietly(long resourceId)
boolean updateLock(long resourceId)
resourceId
- void releaseLock(long resourceId)
resourceId
- boolean hasLock(long resourceId)
boolean isLockModified(long resourceId)
boolean isLockOpen(long resourceId)
void synchLocks()
long newResourceId() throws java.lang.Exception
java.lang.Exception