LockManager

The LockManager interface provides in memory locking services via its #lock(String, String) and #unlock(String, String) methods.

The LockManager is accessed using EbaseSystem#getLockManager().

LockManager Functions

isLockHeld LockManager.isLockHeld( resourceName , id ) Returns true if the lock is held by another user, returns false if no lock exists or the lock is held by the user associated with the current thread.
lock LockManager.lock( resourceName , id ) Locks the specified resource id so that it cannot be accessed by another user, returns false if the lock could not be obtained because it's held by another user, otherwise returns true.
unlock LockManager.unlock( resourceName , id ) Unlocks the specified resource id so that it can be accessed by another user.