/** * Return the count of active locks on this file * * @return int */ public final int numberOfLocks() { if (m_lockList != null) return m_lockList.numberOfLocks(); return 0; }
/** * Check if there are active locks on this file * * @return boolean */ public final boolean hasActiveLocks() { if (m_lockList != null && m_lockList.numberOfLocks() > 0) return true; return false; }