public void getWriteLock() { ManagerUtil.beginLock(lockId, lockType); isLocked = true; }
public boolean tryWriteLock() { isLocked = ManagerUtil.tryBeginLock(lockId, lockType); return isLocked; }
public void commitLock() { ManagerUtil.commitLock(lockId); isLocked = false; }