Exemple #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;
 }
Exemple #2
0
 public int localHeldCount(String lockName, int lockLevel) {
   final LockID lockID = lockManager.lockIDFor(lockName);
   return lockManager.localHeldCount(lockID, lockLevel);
 }