public void resetStats(){
  if (lock.tryLock()) {
    try {
      ensureInitialized();
      updateStats();
    }
  finally {
      lock.unlock();
    }
  }
}

public void resetStats ( ) { if ( lock . tryLock ( ) ) { try { ensureInitialized ( ) ; updateStats ( ) ; } finally { lock . unlock ( ) ; } } }
thread - safe call to reset the disk stats . if we know that the free space has changed recently ( for example , if we have deleted files ) , use this method to reset the internal state and start tracking disk stats afresh , resetting the internal timer for updating stats .
