Ejemplo n.º 1
0
 public boolean isHeldByCurrentThread(String lockName, int lockLevel) {
   if (isTransactionLoggingDisabled()) {
     return true;
   }
   final LockID lockID = lockManager.lockIDFor(lockName);
   return lockManager.localHeldCount(lockID, lockLevel) > 0;
 }
Ejemplo n.º 2
0
 public int localHeldCount(String lockName, int lockLevel) {
   final LockID lockID = lockManager.lockIDFor(lockName);
   return lockManager.localHeldCount(lockID, lockLevel);
 }