AtomicInteger timer = this._delayedLuceneIndexing.get(toIndex); if (timer.decrementAndGet() == 0) { LOGGER.debug("Re-indexing file {} after delay", toIndex.first()); config.getManager().index(toIndex.first(), LocalFileContentType.SINGLETON, toIndex.second(), req, Priority.HIGH, null); } else { IndexBatch batch = batches.get(toIndex.second().getIndexID()); config.getManager().indexBatch(batch, toIndex.first(), LocalFileContentType.SINGLETON, toIndex.second(), req, Priority.HIGH, null); AtomicInteger timer = this._delayedSolrIndexing.get(toIndex); if (timer.decrementAndGet() == 0) { LOGGER.debug("Re-indexing file {} after delay", toIndex.first()); config.getManager().index(toIndex.first(), LocalFileContentType.SINGLETON, toIndex.second(), req, Priority.HIGH, null); } else { IndexBatch batch = batches.get(toIndex.second().getIndexID()); config.getManager().indexBatch(batch, toIndex.first(), LocalFileContentType.SINGLETON, toIndex.second(), req, Priority.HIGH, null);