Example #1
0
  /** Do the real work of isOwner. */
  boolean isOwnerInternal(Long nodeId, Locker locker, LockType type, int lockTableIndex) {

    Map<Long, Lock> lockTable = lockTables[lockTableIndex];
    Lock entry = lockTable.get(nodeId);
    if (entry == null) {
      return false;
    }

    return entry.isOwner(locker, type);
  }