示例#1
0
 public void getWriteLock() {
   ManagerUtil.beginLock(lockId, lockType);
   isLocked = true;
 }
示例#2
0
 public boolean tryWriteLock() {
   isLocked = ManagerUtil.tryBeginLock(lockId, lockType);
   return isLocked;
 }
示例#3
0
 public void commitLock() {
   ManagerUtil.commitLock(lockId);
   isLocked = false;
 }