Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
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;
 }