public void addedDocument(int commitWithin){
  if (docsUpperBound > 0) {
    long docs=docsSinceCommit.incrementAndGet();
    if (docs == docsUpperBound + 1) {
      docsSinceCommit.set(0);
      _scheduleCommitWithin(DOC_COMMIT_DELAY_MS);
    }
  }
  _scheduleCommitWithinIfNeeded(commitWithin);
}

public void addedDocument ( int commitWithin ) { if ( docsUpperBound > 0 ) { long docs = docsSinceCommit . incrementAndGet ( ) ; if ( docs == docsUpperBound + 1 ) { docsSinceCommit . set ( 0 ) ; _scheduleCommitWithin ( DOC_COMMIT_DELAY_MS ) ; } } _scheduleCommitWithinIfNeeded ( commitWithin ) ; }
indicate that documents have been added
